How do I set a verbose_name
for the @property
, which I described in the model, so I can see a different field name (e.g. 'subcategory') in Django Admin?
@property
def category_name(self):
return self.category.name
I tried to set Meta, short_description
and verbose name inside of the method -- it doesn't work.