diff --git a/cookbook/forms.py b/cookbook/forms.py index b5dca7256..1990047ca 100644 --- a/cookbook/forms.py +++ b/cookbook/forms.py @@ -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'), diff --git a/cookbook/templates/forms/edit_internal_recipe.html b/cookbook/templates/forms/edit_internal_recipe.html index 028316c5a..3f747f0ce 100644 --- a/cookbook/templates/forms/edit_internal_recipe.html +++ b/cookbook/templates/forms/edit_internal_recipe.html @@ -19,6 +19,7 @@