organizatori | admin | oprava zobrazovani "" navic
This commit is contained in:
parent
b19cbe6032
commit
e2edab52f8
1 changed files with 5 additions and 2 deletions
|
@ -348,8 +348,11 @@ admin.site.register(Novinky, NovinkyAdmin)
|
|||
|
||||
def jmeno_organizatora(obj):
|
||||
''' vraci jmeno organizatora '''
|
||||
return ('%s \"%s\" %s' %
|
||||
(obj.user.first_name, obj.prezdivka, obj.user.last_name))
|
||||
jmeno = obj.user.first_name
|
||||
if obj.prezdivka:
|
||||
jmeno = jmeno + ' "' + obj.prezdivka + '"'
|
||||
jmeno = jmeno + ' ' + obj.user.last_name
|
||||
return jmeno
|
||||
jmeno_organizatora.short_description = 'Jméno organizátora'
|
||||
|
||||
def je_organizator_aktivni(obj):
|
||||
|
|
Loading…
Reference in a new issue