Club model implementation, various other changes

This commit is contained in:
Skia
2016-01-29 15:20:00 +01:00
parent 7f4955d15c
commit 4322318c31
26 changed files with 267 additions and 204 deletions

View File

@ -3,15 +3,16 @@ from django.views.generic import ListView
from core.models import Group
from core.views.forms import GroupEditForm
from core.views import CanEditMixin
class GroupListView(ListView):
class GroupListView(CanEditMixin, ListView):
"""
Displays the group list
"""
model = Group
template_name = "core/group_list.html"
class GroupEditView(UpdateView):
class GroupEditView(CanEditMixin, UpdateView):
model = Group
pk_url_kwarg = "group_id"
template_name = "core/group_edit.html"