Permalink
Browse files

small fix to webif

  • Loading branch information...
1 parent 6aaddfc commit 9ff33f3ef316cc7ff8ad350ca24a461cf9762015 @rep committed Sep 8, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 webif/views.py
View
@@ -339,9 +339,8 @@ def editak(request, ak):
akobj.subscribe.append(chan)
akobj.save()
return render_to_response('editak.html', {'addedaccess': True, 'ak': akobj, 'chan': chan}, context_instance=RequestContext(request))
- else:
- return render_to_response('editak.html', {'form': caf, 'ak': akobj, 'axs': straxs}, context_instance=RequestContext(request))
-
+ else:
+ caf = ChanAccessForm(request.user)
axs = collections.defaultdict(set)
for c in akobj.publish:
@@ -350,7 +349,6 @@ def editak(request, ak):
axs[c].add('sub')
straxs = [(chan, ','.join(v)) for chan, v in axs.items()]
- caf = ChanAccessForm(request.user)
return render_to_response('editak.html', {'form': caf, 'ak': akobj, 'axs': straxs}, context_instance=RequestContext(request))
def index(request):

0 comments on commit 9ff33f3

Please sign in to comment.