I have an Model with a field that is a oneToOne relationship with a model in 
another app:

class SensePost (models.Model):
    feedjackpost = models.OneToOneField(Post, blank=True, null=True)
    ...

I'm trying to to write a filter query that uses fields in the related model:

senseposts = SensePost.objects.filter(processed=True, 
feedjackpost__date_created__exact=date)

but that filter throws this error:

Exception Type: FieldError
Exception Value:        
Cannot resolve keyword 'date_created' into field. Choices are: feedjackpost, 
id, processed, raw_text, topic

So I guess there is something basic about the query syntax that I don't 
understand?
Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to