~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/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:
28
28
        text += ['has perm.']
29
29
    value = ', '.join(text)
30
30
    return value
31
 
roles.short_description = u'Groups/Permissions'
 
31
roles.short_description = 'Groups/Permissions'
32
32
 
33
33
 
34
34
def persons(self):
38
38
 
39
39
def deleted(self):
40
40
    return '' if self.wlprofile.deleted==False else 'Yes'
41
 
deleted.short_description = u'Deleted himself'
 
41
deleted.short_description = 'Deleted himself'
42
42
 
43
43
 
44
44
class GroupAdmin(GroupAdmin):