Hi,

I have different models A,B,C which all will have exactly on Address.
If I query instances of A,B,C I usually will also need the related
address. I also want to query all instances of A,B,C which have a
certain zip code for example. What's the best and most efficient way
to model that in django?

Using a common base class sound like the most efficient solution, but
feels wrong from a OO point of view. Using a GenericRelation sound
like the cleaner solution to me, but I fear that the resulting
statements might be slow.

Any hint or other solution?

cheers,
Achim

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