I have a table like

Contracts
   contract_number : text
   faculty         : foreign_key to User

As expected ALL the users show up in this drop down in the admin page.
My intention is to have faculty is be a sub set of users.  My first
thought is to
create a Group called "faculty" and use the "limit_choices_to" property
to control what can be shown in the faculty drop down for the contracts
edit page.

- Is this the django way to think about this?
- I'd appreciate some help working out exactly how to use
limit_choices_to,
  Seems like I'd need a join between user/users_to_groups/group.
  I'm not sure how that would work exactly.
  (I understand the raw sql, I'm just not sure how to express that in a
way
  limit_choices_to understands)

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

Reply via email to