Skip to content
Snippets Groups Projects
Commit 78f8af53 authored by Carlos Vega's avatar Carlos Vega
Browse files

Fixes issue #237 and #232 (duplicate). Added file web/views/daily_planning.py...

Fixes issue #237 and #232 (duplicate). Added file web/views/daily_planning.py with class TemplateDailyPlannerView
parent 1121aa01
No related branches found
No related tags found
1 merge request!164Fixes issue #237 and #232 (duplicate). Added file web/views/daily_planning.py…
Pipeline #6507 passed
......@@ -21,6 +21,7 @@ from django.views.defaults import page_not_found
from django.views.generic import TemplateView
from web import views
from web.views.daily_planning import TemplateDailyPlannerView
urlpatterns = [
......@@ -171,7 +172,7 @@ urlpatterns = [
# DAILY PLANNING #
####################
url(r'^daily_planning$', TemplateView.as_view(template_name='daily_planning.html'),
url(r'^daily_planning$', TemplateDailyPlannerView.as_view(template_name='daily_planning.html'),
name='web.views.daily_planning'),
####################
......
# coding=utf-8
import logging
from django.views.generic import TemplateView
from . import wrap_response
class TemplateDailyPlannerView(TemplateView):
def get(self, request, *args, **kwargs):
context = self.get_context_data(**kwargs)
return wrap_response(request, 'daily_planning.html', context)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment