Hi there -

I'll just start into the example I'm wondering about without introducing
it.  We have a bunch of users, along with the 'resources' they have access
to.

So, I can do this:

me = persons.get_object(username__exact='bailey')
me.get_resourcerecord(resource=resourcetypes.get_object(short_name__exact='clusterA'))

except I want to do this for the last line:

me.get_resourcerecord('clusterA')

Is this possible?  Obviously the first example hits the database twice
unideally.  This should be possible to do, it's not hard to put into the
framework.

Alan

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