~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/admin.py

  • Committer: franku
  • Date: 2019-04-11 15:06:09 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411150609-801l72ffxgr6gkui
converted to python 3.6 using 2to3 script

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):