Skip to content

Commit

Permalink
A few admin tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobian committed May 10, 2011
1 parent e452f7e commit 32b141b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions faq/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
from datetime import datetime

class TopicAdmin(admin.ModelAdmin):

prepopulated_fields = {'slug':('name',)}


class QuestionAdmin(admin.ModelAdmin):

list_display = ['text', 'sort_order', 'created_by', 'created_on', 'updated_by', 'updated_on', 'status']
list_display = ['text', 'sort_order', 'created_by', 'created_on',
'updated_by', 'updated_on', 'status']
list_editable = ['sort_order', 'status']

def save_model(self, request, obj, form, change):
'''
Expand Down

0 comments on commit 32b141b

Please sign in to comment.