Exluded weight field from item forms.
This commit is contained in:
parent
444cb5d23f
commit
8ef3d485fe
@ -23,7 +23,7 @@ class ItemFormText(ModelForm):
|
|||||||
parent = ModelChoiceField(queryset=items, label=_("Parent item"), required=False)
|
parent = ModelChoiceField(queryset=items, label=_("Parent item"), required=False)
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ItemText
|
model = ItemText
|
||||||
exclude = ('closed')
|
exclude = ('closed', 'weight')
|
||||||
|
|
||||||
|
|
||||||
class ItemFormApplication(ModelForm):
|
class ItemFormApplication(ModelForm):
|
||||||
@ -34,7 +34,7 @@ class ItemFormApplication(ModelForm):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ItemApplication
|
model = ItemApplication
|
||||||
exclude = ('closed')
|
exclude = ('closed', 'weight')
|
||||||
|
|
||||||
|
|
||||||
class ItemFormPoll(ModelForm):
|
class ItemFormPoll(ModelForm):
|
||||||
@ -45,7 +45,7 @@ class ItemFormPoll(ModelForm):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ItemPoll
|
model = ItemPoll
|
||||||
exclude = ('closed')
|
exclude = ('closed', 'weight')
|
||||||
|
|
||||||
|
|
||||||
class ItemFormAssignment(ModelForm):
|
class ItemFormAssignment(ModelForm):
|
||||||
@ -56,7 +56,7 @@ class ItemFormAssignment(ModelForm):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ItemAssignment
|
model = ItemAssignment
|
||||||
exclude = ('closed')
|
exclude = ('closed', 'weight')
|
||||||
|
|
||||||
|
|
||||||
def genweightchoices():
|
def genweightchoices():
|
||||||
|
Loading…
Reference in New Issue
Block a user