hidden field for movement
This commit is contained in:
@ -35,9 +35,11 @@ class ExternalRecipeForm(forms.ModelForm):
|
||||
|
||||
|
||||
class InternalRecipeForm(forms.ModelForm):
|
||||
table_pos = forms.CharField(show_hidden_initial=True, required=False, widget=forms.HiddenInput())
|
||||
|
||||
class Meta:
|
||||
model = Recipe
|
||||
fields = ('name', 'instructions', 'time', 'keywords')
|
||||
fields = ('name', 'table_pos', 'instructions', 'time', 'keywords')
|
||||
|
||||
labels = {
|
||||
'name': _('Name'),
|
||||
|
Reference in New Issue
Block a user