Commits

Anonymous committed 6008732

Tidied up admin for Sittings

Comments (0)

Files changed (2)

 
 admin.site.register(models.Question, QuestionAdmin)
 
-class ResponseInline(admin.TabularInline):
+class ResponseInline(admin.StackedInline):
     model = models.Response
+    readonly_fields = ('question',)
+    fieldsets = (
+        (None, {
+            'fields': ('question', 'choice',),
+        }),
+    )
+
 
 class SittingAdmin(admin.ModelAdmin):
     list_display = ('date_sat', 'student', 'quiz', 'score', 'out_of',)
 from setuptools import setup, find_packages
 
 setup( name='simple-quiz',
-    version = '0.3',
+    version = '0.4',
     description = 'A simple, multiple-guess Quiz app',
     author = 'Curtis Maloney',
     author_email = 'curtis@tinbrain.net',