#1985: CurrentSiteManager can't find field --------------------------------+------------------------------------------- Reporter: [EMAIL PROTECTED] | Owner: adrian Type: defect | Status: new Priority: normal | Milestone: Component: Core framework | Version: Severity: normal | Keywords: --------------------------------+------------------------------------------- The code (taken from docs) in rev [2970] .. from django.db import models from django.contrib.sites.models import Site from django.contrib.sites.managers import CurrentSiteManager class Photo(models.Model): photo = models.FileField(upload_to='/home/photos') photographer_name = models.CharField(maxlength=100) pub_date = models.DateField() publish_on = models.ForeignKey(Site) objects = models.Manager() on_site = CurrentSiteManager('publish_on') Does not work, gives following error. Changing publish_on to site also does the same. Environment OSX and mysql, svn version [2970] raise ValueError, "%s couldn't find a field named %s in %s." % \ ValueError: CurrentSiteManager couldn't find a field named publish_on in Photo
-- Ticket URL: <http://code.djangoproject.com/ticket/1985> Django <http://code.djangoproject.org/> The web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@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-updates -~----------~----~----~----~------~----~------~--~---