Renamed SettingView to ControlView.
This commit is contained in:
parent
55c4299a7f
commit
8d514e9fcf
@ -12,14 +12,14 @@
|
|||||||
|
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
from projector.views import SettingView, ActivateView
|
from projector.views import ControlView, ActivateView
|
||||||
|
|
||||||
urlpatterns = patterns('projector.views',
|
urlpatterns = patterns('projector.views',
|
||||||
url(r'^$', 'active_slide',
|
url(r'^$', 'active_slide',
|
||||||
name='projector_show'),
|
name='projector_show'),
|
||||||
|
|
||||||
url(r'^control$',
|
url(r'^control$',
|
||||||
SettingView.as_view(),
|
ControlView.as_view(),
|
||||||
name='projector_control',
|
name='projector_control',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -29,11 +29,11 @@ from projector.api import get_active_slide, set_active_slide
|
|||||||
from projector.models import SLIDE
|
from projector.models import SLIDE
|
||||||
|
|
||||||
|
|
||||||
class SettingView(TemplateView):
|
class ControlView(TemplateView):
|
||||||
template_name = 'projector/control.html'
|
template_name = 'projector/control.html'
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super(SettingView, self).get_context_data(**kwargs)
|
context = super(ControlView, self).get_context_data(**kwargs)
|
||||||
categories = {}
|
categories = {}
|
||||||
for slide in SLIDE.values():
|
for slide in SLIDE.values():
|
||||||
if not categories.has_key(slide.category):
|
if not categories.has_key(slide.category):
|
||||||
|
Loading…
Reference in New Issue
Block a user