CBV implementation for the edit Widget User page

parent 848298b5
...@@ -18,5 +18,10 @@ class WidgetUserCreateView(CreateView): ...@@ -18,5 +18,10 @@ class WidgetUserCreateView(CreateView):
template_name = "dashboard/widgetuser-add.html" template_name = "dashboard/widgetuser-add.html"
fields = "__all__" fields = "__all__"
class WidgetUserUpdateView(UpdateView):
model = WidgetUser
template_name = "dashboard/widgetuser-edit.html"
fields = "__all__"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment