I have a ModelForm: RequestForExtensionForm which is built from a model: RequestForExtension
Basic stuff so far... The RequestForExtension model has a ForeignKey to the Unit model (Unit is a study course offered that a student can request an extension on via this form) My problem is that in Unit, we have courses that we *can* offer, that are *currently* offered - these vary from term to term. In the ModelForm I want to limit the Units to just those currently offered. Everywhere else in Django I'm able to do this by filtering querysets and/or using a custom manager ("currently_offered") which is on Unit, or filtering in the template (which doesn't feel as elegant), but for the life of my I can't figure out how to do this for the generated ModelForm. Any ideas? Thanks, Andrew. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---