diff options
author | lxf <sng@luxagraf.net> | 2022-02-06 13:47:00 -0500 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-02-06 13:47:00 -0500 |
commit | 129e788c7bd41be000ddc18dd5252a66fc1bee03 (patch) | |
tree | 4568c0a916e3bbec0002f0ca79a6e3ce563faa0c /app/planner/views.py | |
parent | 13c0f7653855b4feb433eeeea513f41693cdb2af (diff) |
plan: added urls and views for camp ideas
Diffstat (limited to 'app/planner/views.py')
-rw-r--r-- | app/planner/views.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/planner/views.py b/app/planner/views.py index ea862ad..a23047f 100644 --- a/app/planner/views.py +++ b/app/planner/views.py @@ -6,7 +6,7 @@ from django.utils import timezone from django.conf import settings from utils.views import PaginatedListView -from .models import Camp +from .models import Camp, CampIdea class PlannerListView(PaginatedListView): @@ -64,3 +64,12 @@ class PlannerUpdateView(UpdateView): success_url = '/planner/' template_name = 'planner/update_form.html' + +class CampIdeaListView(PaginatedListView): + model = CampIdea + template_name = 'planner/idea-list.html' + + def get_context_data(self, **kwargs): + # Call the base implementation first to get a context + context = super(CampIdeaListView, self).get_context_data(**kwargs) + return context |