I'm trying to extend the manager created for a ManyToMany relationship, and I can't seem to make it happen. There's loads of information available on extending basic managers, but I can't seem to find anything on the ManyToMany variety. Given that managers for ManyToMany fields are generated automatically from within a function, there's not really a class to override. I've tried a couple different ways of trying to override it, and I'm still working on another angle to try and get it to work, but I just thought maybe somebody already ran into this, or maybe there was some undocumented shortcut for overriding ManyToMany managers.
For the record, the end result is that I need to limit the number of relationships a particular model can have to the other. To that end, I'm trying to override the add() method of the manager so that it throws an error if that limit has already been reached. So if there's a better way to achieve that goal than trying to override the ManyToMany manager, I'd be glad to hear it. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---