class Material(models.Model): products = ManyToManyField('Product', related_name='materials')
class Products(models.Model):
...
class ProductForm(forms.ModelForm):
class Meta:
model = Product
fields = ('materials', )
I want to do this. I saw this discussion:
http://groups.google.com/group/django-users/browse_thread/thread/4921...
And, I tried this snippet:
http://djangosnippets.org/snippets/1295/
The related names of this snippet make no sense. If they are made to make sense, then there would be an accessor clash. Without the clash, the accessors are redundant at best... and really actually quite wrong.
Has any progress been made on this convenience or is the recommended course just to create a non-Model form and make a save method?
I've already implemented my solution for this in my case but I thought I would drop it here since it is tumbleweed on django-users.