Minor changes
[prawokultury.git] / questions / admin.py
index d8676dc..7d81a20 100755 (executable)
@@ -6,8 +6,9 @@ class QuestionAdmin(admin.ModelAdmin):
     list_filter = ('approved', 'answered', 'published')
     list_display = ('question', 'email', 'created_at', 'approved', 'answered', 'published')
     date_hierarchy = 'created_at'
     list_filter = ('approved', 'answered', 'published')
     list_display = ('question', 'email', 'created_at', 'approved', 'answered', 'published')
     date_hierarchy = 'created_at'
+    search_fields = ('question', 'edited_question', 'answer', 'email')
     fields = (
     fields = (
-        ('email', 'created_at'),
+        ('email', 'created_at', 'changed_at'),
         'question',
         'approved',
         'edited_question',
         'question',
         'approved',
         'edited_question',
@@ -16,7 +17,7 @@ class QuestionAdmin(admin.ModelAdmin):
         ('published', 'published_at'),
         
     )
         ('published', 'published_at'),
         
     )
-    readonly_fields = ['created_at', 'answered_at', 'published_at']
+    readonly_fields = ['created_at', 'answered_at', 'published_at', 'changed_at']
 
 
 admin.site.register(Question, QuestionAdmin)
 
 
 admin.site.register(Question, QuestionAdmin)