From f3cfc80f15c2bddc6fcc17ad07bd6f60fb7e9d8a Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 19 Aug 2009 13:04:48 -0400 Subject: [PATCH] still very much a work in progress --- brainstorm/urls.py | 3 ++- brainstorm/views.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/brainstorm/urls.py b/brainstorm/urls.py index b62dada..7253790 100644 --- a/brainstorm/urls.py +++ b/brainstorm/urls.py @@ -1,9 +1,10 @@ from django.conf.urls.defaults import * +from django.conf import settings from django.contrib.contenttypes.models import ContentType from brainstorm.models import Idea from brainstorm.feeds import SubsiteFeed -BRAINSTORM_USE_SECRETBALLOT = False +BRAINSTORM_USE_SECRETBALLOT = getattr(settings, 'BRAINSTORM_USE_SECRETBALLOT', False) feeds = { 'latest': SubsiteFeed, diff --git a/brainstorm/views.py b/brainstorm/views.py index 074e0db..b12ca88 100644 --- a/brainstorm/views.py +++ b/brainstorm/views.py @@ -9,7 +9,7 @@ from django.views.generic import list_detail from django.views.decorators.http import require_POST from django.contrib.auth.decorators import login_required from django.conf import settings -from anthill.ideas.models import Subsite, Idea, Vote +from brainstorm.models import Subsite, Idea, Vote def idea_list(request, slug, ordering='-total_upvotes'): ordering_db = {'most_popular': '-score',