~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to threadedcomments/admin.py

  • Committer: kaputtnik
  • Date: 2019-06-14 18:40:56 UTC
  • mfrom: (532.1.31 widelands)
  • Revision ID: kaputtnik-20190614184056-l0ha8pm5zais9mxk
Adapted code for use with python 3.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
                                'date_modified', 'date_approved', 'is_approved')}),
13
13
    )
14
14
    list_display = ('user', 'date_submitted', 'content_type',
15
 
                    'get_content_object', 'parent', '__unicode__')
 
15
                    'get_content_object', 'parent', '__str__')
16
16
    list_filter = ('date_submitted',)
17
17
    date_hierarchy = 'date_submitted'
18
18
    search_fields = ('comment', 'user__username')