Removed debug statements.
- Legacy-Id: 9411
This commit is contained in:
parent
7488adef5b
commit
1b50432c42
|
@ -25,12 +25,9 @@ def state_index(request):
|
||||||
|
|
||||||
def state(request, doc, type=None):
|
def state(request, doc, type=None):
|
||||||
if type:
|
if type:
|
||||||
debug.show('type')
|
|
||||||
streams = [ s.slug for s in StreamName.objects.all() ]
|
streams = [ s.slug for s in StreamName.objects.all() ]
|
||||||
debug.show('streams')
|
|
||||||
if type in streams:
|
if type in streams:
|
||||||
type = "stream-%s" % type
|
type = "stream-%s" % type
|
||||||
debug.show('type')
|
|
||||||
slug = "%s-%s" % (doc,type) if type else doc
|
slug = "%s-%s" % (doc,type) if type else doc
|
||||||
statetype = get_object_or_404(StateType, slug=slug)
|
statetype = get_object_or_404(StateType, slug=slug)
|
||||||
states = State.objects.filter(used=True, type=statetype).order_by('order')
|
states = State.objects.filter(used=True, type=statetype).order_by('order')
|
||||||
|
|
Loading…
Reference in a new issue