Example model:
class Vegetable(meta.Model):
name = CharField("Name of the vegetable", maxlength=10)
freshness = PositiveIntegerField("How fresh is it", maxlength=2)
With the django API:
from django.models.vegetable import *
v = vegetables.get_object(pk=1)
Now, how can I get the human readble name of the member "freshness" for the object "v"
I tried exploring v.__class__, v._meta, etc. but no luck.
I think it is possible because, the admin interface does do it for the in-built "users" model.
Thanks,
Chetan
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
- How does one access the human readble names given in the mod... Chetan Vaity