From 78f8af5336b7e0c271bcc774abde87c476cdc904 Mon Sep 17 00:00:00 2001
From: Carlos Vega <carlos.vega@.uni.lu>
Date: Fri, 21 Sep 2018 17:01:54 +0200
Subject: [PATCH] Fixes issue #237 and #232 (duplicate). Added file
 web/views/daily_planning.py with class TemplateDailyPlannerView

---
 smash/web/urls.py                 | 3 ++-
 smash/web/views/daily_planning.py | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 smash/web/views/daily_planning.py

diff --git a/smash/web/urls.py b/smash/web/urls.py
index be3b72f6..65d7d4e8 100644
--- a/smash/web/urls.py
+++ b/smash/web/urls.py
@@ -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'),
 
     ####################
diff --git a/smash/web/views/daily_planning.py b/smash/web/views/daily_planning.py
new file mode 100644
index 00000000..3988cc23
--- /dev/null
+++ b/smash/web/views/daily_planning.py
@@ -0,0 +1,9 @@
+# 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
-- 
GitLab