~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to check_input/admin.py

  • Committer: franku
  • Date: 2017-11-24 10:55:59 UTC
  • mto: This revision was merged to the branch mainline in revision 477.
  • Revision ID: somal@arcor.de-20171124105559-rya7nfyx89yd1ds8
adjusted moderating view; minor fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
class SuspiciousInputAdmin(admin.ModelAdmin):
7
7
    list_display = ('text', 'user', 'get_app')
8
 
    #readonly_fields = ('text', 'user', 'get_app',)
 
8
    readonly_fields = ('text', 'user', 'get_app',)
9
9
    exclude = ('content_type', 'object_id', )
10
 
    # fieldsets = (
11
 
    #     (None, {
12
 
    #         'description': '<strong>This is just an informational view!</strong>',
13
 
    #         'fields': ('spam_text', 'user', 'content_type', 'object_id',)
14
 
    #     }),
15
 
    # )
16
10
    
17
11
    def get_app(self, obj):
18
12
        app = ContentType.objects.get_for_id(