patch form exclude syntax

pull/1/head
eric 2016-04-07 20:39:23 -04:00
parent 356207bc5d
commit 7a952f09cf
2 changed files with 5 additions and 5 deletions

View File

@ -184,7 +184,7 @@ class EditionForm(forms.ModelForm):
class Meta:
model = Edition
exclude = 'created', 'work'
exclude = ('created', 'work')
widgets = {
'title': forms.TextInput(attrs={'size': 40}),
'add_author': forms.TextInput(attrs={'size': 30}),
@ -269,7 +269,7 @@ def UserClaimForm ( user_instance, *args, **kwargs ):
class Meta:
model = Claim
exclude = 'status'
exclude = ('status',)
widgets = {
'user': forms.HiddenInput,
'work': forms.HiddenInput,

View File

@ -47,7 +47,7 @@ class ip:
class admin_form(forms.ModelForm):
class Meta:
model = Block
exclude = "library"
exclude = ("library",)
class cardnum:
def authenticate(self,request, library):
@ -70,7 +70,7 @@ class cardnum:
class admin_form(forms.ModelForm):
class Meta:
model = CardPattern
exclude = "library"
exclude = ("library",)
class form(forms.ModelForm):
credential = forms.RegexField(
@ -119,4 +119,4 @@ class email:
class admin_form(forms.ModelForm):
class Meta:
model = EmailPattern
exclude = "library"
exclude = ("library",)