Fix django 1.7 deprecation warnings: Always set fields= or exclude= in Meta for ModelForm subclasses.

- Legacy-Id: 8828
This commit is contained in:
Henrik Levkowetz 2014-12-22 17:46:29 +00:00
parent b5dad67b05
commit 43dbe3bfd1
2 changed files with 3 additions and 0 deletions

View file

@ -12,6 +12,7 @@ from ietf.ipr.models import (IprNotification, IprDisclosureBase, IprDocRel, IprE
class IprDocRelAdminForm(forms.ModelForm):
class Meta:
model = IprDocRel
fields = '__all__'
widgets = {
'sections':forms.TextInput,
}

View file

@ -93,6 +93,7 @@ class DraftForm(forms.ModelForm):
class Meta:
model = IprDocRel
fields = '__all__'
widgets = {
'sections': forms.TextInput(),
}
@ -167,6 +168,7 @@ class IprDisclosureFormBase(forms.ModelForm):
class Meta:
"""This will be overridden"""
model = IprDisclosureBase
fields = '__all__'
def clean(self):
super(IprDisclosureFormBase, self).clean()