Задать вопрос

Тел: +7 965 3737 888

516

Просмотров

1

Ответов

Callable short_description (or other Meaningful Method Attributes)

The django admin (as of 1.3) doesn't allow for short_description (and other ModelAdmin function attributes) to be a callable. Until that happens, this handy snippet allows you to return dynamic descriptions.

Note, I haven't actually tested this yet -- but I plan to when I have the free time.

Вопрос полезен? Да0/Нет0
file_4784.py(1.2Кб)
None

Ответы (1):

Ответmalinich:06.12.2013
Ответ полезен? Да0/Нет0

it not work for me