>
> That's interesting, but I think that leaving the models untouched
> would be better.
> Do you think there is a different way?

There might be. First, you'd have to explain what you didn't like
about doing queries like:

Image.objects.filter( book__library_owner=request.user)

Since you don't want to change your models, only your Library model
maintains the source of ownership and so, by definition, all your
queries would have to lead to a check on the Library.owner field
thereby ending up with filters like xyz__library_owner=some_user.

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