Reorder GroupDetailView code in view.py.

This commit is contained in:
Emanuel Schuetze 2013-04-09 19:53:18 +02:00
parent 2a97a61a14
commit 9f6da9f33b

View File

@ -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.