patch form exclude syntax
parent
356207bc5d
commit
7a952f09cf
|
@ -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,
|
||||
|
|
|
@ -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",)
|
||||
|
|
Loading…
Reference in New Issue