Wednesday, July 27, 2011

Re: Extending the ManyToMany relation, maybe a bad idea

You can override the ModelForm.

Add the fields to the ModelForm. Set the initial values by overriding
__init__, and save them by overriding the save() method.

Should be pretty simple.

--
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.

No comments:

Post a Comment