I'd like to attach some user-defined meta-information to individual
model fields and have it also be available in the corresponding form
fields. Ideally, I'd have liked to have a keyword arg on the fields...
class MyModel(models.Model):
name = models.CharField(max_length=100, info=some_object)
active = models.BooleanField(info=some_other_object)
Ideally, this information would be available in the corresponding form
field.
What's the best way of achieving this DRY-ly?
Regards,
Vinay Sajip
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---