Commit b630742f authored by Cyrille STROESSER's avatar Cyrille STROESSER
Browse files

#113: bug fixed

parent b20df930
Pipeline #2421 passed with stage
in 16 minutes and 29 seconds
......@@ -73,7 +73,7 @@ urlpatterns = [
re_path(r"^register$", register, name="register"),
# Group handling
re_path(r"^group/$", GroupListView.as_view(), name="group_list"),
re_path(r"^group/new$", GroupCreateView.as_view(), name="group_new"),
re_path(r"^group/new/$", GroupCreateView.as_view(), name="group_new"),
re_path(
r"^group/(?P<group_id>[0-9]+)/$", GroupEditView.as_view(), name="group_edit"
),
......
......@@ -37,7 +37,7 @@ from django import forms
from ajax_select.fields import AutoCompleteSelectMultipleField
from core.models import RealGroup, User
from core.views import CanEditMixin, DetailFormView
from core.views import CanCreateMixin, CanEditMixin, DetailFormView
# Forms
......@@ -109,13 +109,13 @@ class GroupEditView(CanEditMixin, UpdateView):
fields = ["name", "description"]
class GroupCreateView(CanEditMixin, CreateView):
class GroupCreateView(CanCreateMixin, CreateView):
"""
Add a new Group
"""
model = RealGroup
template_name = "core/group_edit.jinja"
template_name = "core/create.jinja"
fields = ["name", "description"]
......
Supports Markdown
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