still very much a work in progress
This commit is contained in:
parent
ef03c3fa74
commit
f3cfc80f15
@ -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,
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user