|
@ -348,8 +348,11 @@ admin.site.register(Novinky, NovinkyAdmin) |
|
|
|
|
|
|
|
|
def jmeno_organizatora(obj): |
|
|
def jmeno_organizatora(obj): |
|
|
''' vraci jmeno organizatora ''' |
|
|
''' vraci jmeno organizatora ''' |
|
|
return ('%s \"%s\" %s' % |
|
|
jmeno = obj.user.first_name |
|
|
(obj.user.first_name, obj.prezdivka, obj.user.last_name)) |
|
|
if obj.prezdivka: |
|
|
|
|
|
jmeno = jmeno + ' "' + obj.prezdivka + '"' |
|
|
|
|
|
jmeno = jmeno + ' ' + obj.user.last_name |
|
|
|
|
|
return jmeno |
|
|
jmeno_organizatora.short_description = 'Jméno organizátora' |
|
|
jmeno_organizatora.short_description = 'Jméno organizátora' |
|
|
|
|
|
|
|
|
def je_organizator_aktivni(obj): |
|
|
def je_organizator_aktivni(obj): |
|
|