Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Remove unneeded generic view

Roland Geider059de319d497
diff --git a/software/urls.py b/software/urls.py
index d5eaa72e7..77829cded 100644
--- a/software/urls.py
+++ b/software/urls.py
@@ -15,16 +15,13 @@
# You should have received a copy of the GNU Affero General Public License
from django.conf.urls import patterns, url
-
from django.views.generic import TemplateView
-from software.views import IssuesTemplateView
-
urlpatterns = patterns('',
url(r'^issues$',
- IssuesTemplateView.as_view(),
+ TemplateView.as_view(template_name="issues.html"),
name='issues'),
url(r'^features$',
diff --git a/software/views.py b/software/views.py
deleted file mode 100644
index 3a68b8635..000000000
--- a/software/views.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# This file is part of Workout Manager.
-#
-# Workout Manager is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Workout Manager is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-
-from django.views.generic import TemplateView
-
-from workout_manager.constants import SOFTWARE_TAB
-
-
-class IssuesTemplateView(TemplateView):
- template_name = "issues.html"
-
- def get_context_data(self, **kwargs):
- context = super(IssuesTemplateView, self).get_context_data(**kwargs)
- context['active_tab'] = SOFTWARE_TAB
- return context