basic custom media working
This commit is contained in:
@ -4,7 +4,7 @@ from django.urls import reverse_lazy, reverse
|
||||
from django.utils.translation import gettext as _
|
||||
from django.views.generic import UpdateView, DeleteView
|
||||
|
||||
from cookbook.forms import EditRecipeForm
|
||||
from cookbook.forms import EditRecipeForm, EditCategoryForm
|
||||
from cookbook.models import Recipe, Category, Sync, Keyword, RecipeImport
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ class MonitorUpdate(LoginRequiredMixin, UpdateView):
|
||||
class CategoryUpdate(LoginRequiredMixin, UpdateView):
|
||||
template_name = "generic\edit_template.html"
|
||||
model = Category
|
||||
fields = ['name', 'icon', 'description']
|
||||
form_class = EditCategoryForm
|
||||
|
||||
# TODO add msg box
|
||||
|
||||
|
Reference in New Issue
Block a user