Your Ad Here

Thursday, January 12, 2012

admin properties and short_description

Hi, is there a way how to pass a short_description to a property?

I have:

@property
def extend_types(self):
return cjson.decode(self.extend_types_data)
#extend_types.short_description = 'Something better'

with the code uncommented I get:

AttributeError: 'property' object has no attribute 'short_description'

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 comments:

Post a Comment