python Programming Glossary: affiliate
Django Passing Custom Form Parameters to Formset http://stackoverflow.com/questions/622982/django-passing-custom-form-parameters-to-formset custom_widgets.SmallField def __init__ self args kwargs affiliate kwargs.pop 'affiliate' super ServiceForm self .__init__ args.. def __init__ self args kwargs affiliate kwargs.pop 'affiliate' super ServiceForm self .__init__ args kwargs self.fields option.. self.fields option .queryset ServiceOption.objects.filter affiliate affiliate I call this form with something like this form ServiceForm..
|