Reorder GroupDetailView code in view.py.
This commit is contained in:
parent
2a97a61a14
commit
9f6da9f33b
@ -86,16 +86,6 @@ class UserDetailView(DetailView, PermissionMixin):
|
||||
context_object_name = 'shown_user'
|
||||
|
||||
|
||||
class GroupDetailView(DetailView, PermissionMixin):
|
||||
"""
|
||||
Classed based view to show a specific group in the interface.
|
||||
"""
|
||||
permission_required = 'participant.can_manage_participant'
|
||||
model = Group
|
||||
template_name = 'participant/group_detail.html'
|
||||
context_object_name = 'group'
|
||||
|
||||
|
||||
class UserCreateView(CreateView):
|
||||
"""
|
||||
Create a new participant.
|
||||
@ -344,6 +334,16 @@ class GroupOverview(ListView):
|
||||
model = Group
|
||||
|
||||
|
||||
class GroupDetailView(DetailView, PermissionMixin):
|
||||
"""
|
||||
Classed based view to show a specific group in the interface.
|
||||
"""
|
||||
permission_required = 'participant.can_manage_participant'
|
||||
model = Group
|
||||
template_name = 'participant/group_detail.html'
|
||||
context_object_name = 'group'
|
||||
|
||||
|
||||
class GroupCreateView(CreateView):
|
||||
"""
|
||||
Create a new group.
|
||||
|
Loading…
Reference in New Issue
Block a user