Hi, On 8/7/07, Rishtastic <[EMAIL PROTECTED]> wrote: > > Hi! > > I have a teacherProfile which links back to a user. I want each > classroom to have a teacher associated with it and each teacherProfile > can add a classroom. The issue is when the teacher goes to create a > classroom, under the "teacher" field, it creates a drop down box of > all the teacherProfile Objects, rather than just one teacherProfile > object. > > teacherProfiles are considered staff on the admin page, so is there > any way to limit teacherProfiles so they can only select themselves in > the "create classroom" page?
This could probably work with limit_choices_to described here: http://www.djangoproject.com/documentation/model-api/ > Thanks! HTH Kai --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---