Permalink
Browse files

three quarters the way through 02

  • Loading branch information...
1 parent d6ba30a commit e5b979ee0a0154fe00050181ef54f1fdb6623131 @swmcc committed Nov 18, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 polls/admin.py
  2. BIN polls/admin.pyc
View
3 polls/admin.py
@@ -2,7 +2,7 @@
from polls.models import Choice
from polls.models import Question
-class ChoiceInline(admin.StackedInline):
+class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
@@ -12,5 +12,6 @@ class QuestionAdmin(admin.ModelAdmin):
['Date information', {'fields': ['pub_date'], 'classes': ['collapse']}],
]
inlines = [ChoiceInline]
+ list_display = ('question_text', 'pub_date', 'was_published_recently')
admin.site.register(Question, QuestionAdmin)
View
BIN polls/admin.pyc
Binary file not shown.

0 comments on commit e5b979e

Please sign in to comment.