Re: [Django] #1985: CurrentSiteManager can't find field

2006-05-26 Thread Django
#1985: CurrentSiteManager can't find field
+---
 Reporter:  [EMAIL PROTECTED]  |Owner:  adrian
 Type:  defect  |   Status:  closed
 Priority:  normal  |Milestone:
Component:  Core framework  |  Version:
 Severity:  normal  |   Resolution:  fixed 
 Keywords:  |  
+---
Changes (by adrian):

  * resolution:  => fixed
  * status:  new => closed

Comment:

 (In [2989]) Fixed #1985 -- Got CurrentSiteManager working

-- 
Ticket URL: 
Django 
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
-~--~~~~--~~--~--~---



Re: [Django] #1985: CurrentSiteManager can't find field

2006-05-26 Thread Django
#1985: CurrentSiteManager can't find field
+---
 Reporter:  [EMAIL PROTECTED]  |Owner:  adrian
 Type:  defect  |   Status:  new   
 Priority:  normal  |Milestone:
Component:  Core framework  |  Version:
 Severity:  normal  |   Resolution:
 Keywords:  |  
+---
Old description:

> 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

New description:

 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

Comment (by adrian):

 Fixed formatting in description.

-- 
Ticket URL: 
Django 
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
-~--~~~~--~~--~--~---



[Django] #1985: CurrentSiteManager can't find field

2006-05-23 Thread Django
#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: 
Django 
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
-~--~~~~--~~--~--~---