Hi there,

I'm having trouble with the documentation at
http://www.djangoproject.com/documentation/db_api/#lookups-that-span-relationships

It says that I can follow a 'reverse' relationship by using the
lowercase name of the model, but when I try with the model below, I get
an error. What am I doing wrong?
Many thanks in advance for your time and assistance.

class Person(models.Model):
        surname = models.CharField(maxlength=32)
        given_names = models.CharField(maxlength=32)

class Registration(models.Model):
        person = models.ForeignKey(Person, edit_inline=models.TABULAR)
        reg_year = models.IntegerField(core=True)

Person.objects.filter(registration__reg_year__exact=2006)
 ==> TypeError: Cannot resolve keyword 'registration' into field


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

Reply via email to