ManyToManyField does not create set methods in auth.User model
|Reported by:||Stan Seibert <volsung@…>||Owned by:||adrian|
|Component:||Database layer (models, ORM)||Version:|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have a model in my application which has a many-to-many relationship with Django's auth.User model:
from django.models.auth import User class Category(meta.Model): name = meta.SlugField(maxlength=30, unique=True) desc = meta.CharField(maxlength=50) watchers = meta.ManyToManyField(User, related_name="watched_category")
Running help() on an instance of the User model shows that the appropriate get_vault_watched_category*() (the name of my app is "vault") methods were created, but no set_vault_*() method is there. I can only modify the many-to-many relation from the Category side of things.