Hello,

I've found a few previous threads on this list which covered this
problem, but none from which I found a satisfactory answer. Here is my
model definition from an app called 'sites':

class Site(models.Model):
        """This is a site."""
        name = models.CharField(blank=True, maxlength=100)
        
class Domain(models.Model):
        """This is a domain."""
        url = models.URLField(verify_exists=False)
        site = models.ForeignKey(Site)
        expires_on = models.DateField()
        registered_on = models.DateField()
        registrar = models.CharField(maxlength=100)
        registrar_url = models.URLField(blank=True, verify_exists=True)
                
class Section(models.Model):
        """This is a site section."""
        name = models.CharField(maxlength=100)
        site = models.ForeignKey(Site)

And when I run ./manage.py validate, I get the following error:

sites.domain: Reverse query name for field 'site' clashes with field
'Site.domain'. Add a related_name argument to the definition for
'site'.
sites.domain: Reverse query name for field 'site' clashes with field
'Site.domain'. Add a related_name argument to the definition for
'site'.

Why is this? I don't see what the clash is. I apologise if I need this
explaining in simple language for a five-year-old, but sometimes I'm
stupid :-)

Thanks in advance for any help,

--Jon

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to