Re: limit_choices_to users in a specific group

2005-09-02 Thread scottpierce
Well, I gave up. I had hoped it would be a little cleaner but this works: def _getTeachers(): u = users.get_list( tables=['auth_users_groups','auth_groups'], where=["auth_groups.name = 'teacher'", "auth_users_groups.group_id = auth_groups.id", "auth_u

limit_choices_to users in a specific group

2005-09-01 Thread scottpierce
I am writing a little assignments app for my homeschooled children where I and their mother can post assignments with a due date, etc... My model looks like this so far: from django.models.auth import User from django.models.auth import users from django.models.auth import groups class Assignme