Permalink
Browse files

fix: only show campaigns online which are marked as 'online'

  • Loading branch information...
1 parent 90b342f commit c39627bf4435c4701672730ec6b59712427c97b4 @arneb arneb committed Mar 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 campaign/views.py
View
2 campaign/views.py
@@ -3,7 +3,7 @@
from campaign.models import Campaign
def view_online(request, object_id):
- campaign = get_object_or_404(Campaign, pk=object_id)
+ campaign = get_object_or_404(Campaign, pk=object_id, online=True)
if campaign.template.html is not None and campaign.template.html != u"":
tpl = template.Template(campaign.template.html)

0 comments on commit c39627b

Please sign in to comment.