improved recipe book design

This commit is contained in:
vabene1111
2020-05-02 13:58:42 +02:00
parent 3a9e5a80ba
commit 64ee18c4d8
5 changed files with 67 additions and 38 deletions

View File

@ -14,7 +14,7 @@ from django.utils.translation import gettext as _
from django.views.generic import UpdateView
from cookbook.forms import ExternalRecipeForm, KeywordForm, StorageForm, SyncForm, InternalRecipeForm, CommentForm, \
MealPlanForm, UnitMergeForm, IngredientMergeForm, IngredientForm
MealPlanForm, UnitMergeForm, IngredientMergeForm, IngredientForm, RecipeBookForm
from cookbook.helper.permission_helper import group_required, GroupRequiredMixin
from cookbook.helper.permission_helper import OwnerRequiredMixin
@ -255,7 +255,7 @@ class ImportUpdate(GroupRequiredMixin, UpdateView):
class RecipeBookUpdate(OwnerRequiredMixin, UpdateView):
template_name = "generic/edit_template.html"
model = RecipeBook
fields = ['name']
form_class = RecipeBookForm
def get_success_url(self):
return reverse('view_books')