I have a form application built off of two models, one model is "event information" and the other model is "registrant". I have a field in "event information" called survey_open_flag that is a boolean field that I'm trying to use as a switch (active/non active) in the Admin tool to allow registrants the ability to register for events that are active only. In the form, currently it is showing all events in a dropdown menu.
I have tried using the following statements: class RespondantForm(forms.ModelForm): event = EventInformation.objects.get(survey_open_flag= True) ..... class Meta: model = Respondant fields = RESPONDANT_FIELDS Any suggestions anyone? I've been tooling with this for hours. If you need more code snippets, please let me know. Thanks much to the Django community. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.