On Thu, May 5, 2011 at 6:43 AM, ksamuel <info.ksam...@gmail.com> wrote:
> I encountered a behavior I can't explain in the site framework and > wonder if I should report this as a bug. > > class Video(models.Model): > > sites = models.ManyToManyField(Site) > on_site = CurrentSiteManager() > objects = models.Manager() > Note you've got CurrentSiteManager as the 1st manager object. That makes it the default manager object for the model. It is getting used for reverse ForeignKey relationships; this is contrary to documentation ( http://docs.djangoproject.com/en/1.3/topics/db/managers/#manager-types), has a ticket (http://code.djangoproject.com/ticket/14891), and has recently been discussed on the dev list ( http://groups.google.com/group/django-developers/browse_thread/thread/be12b1f422db3634/d159ae5a2ab16f53 ). Karen -- http://tracey.org/kmt/ -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.