Planning Pages¶
-
class
recipes.views.planning_pages.
MonthViewSet
(**kwargs) Bases:
rest_framework.viewsets.ViewSet
This view set provides two page views, a “list” view which shows all the months and a “detail” view which shows just a single month
-
list
(request) Retrieves a list of monthly plans and renders them in a template :param request: An http request object :return: Rendered HTML
-
retrieve
(request, pk=None) Retrieves a single monthly plan and renders it in a template :param request: An http request object :param pk: The pk for the month of interest :return: Rendered HTML
-
-
class
recipes.views.planning_pages.
PlannerViewSet
(**kwargs) Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,rest_framework.viewsets.ViewSet
This view set provides a single view into the planner page. That page is fully dynamic through Angular XHR calls so no context needs to be rendered.
-
list
(request)
-