KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
has anyone an idea how to add custom name to property in Django model? For example, if I got property: @property def my_property(self): return u'Returns some calculations' and I show it in admin as a column: class MyAdmin(admin.ModelAdmin): list_display=['my_property',] Then I see "My property" column and what I need is "Property X" column. I tried with my_property.short_description and my_property.verbose_name, none of this works.
Tags (comma-separated)
Save Edits
Cancel