Forms#
- class abstract.forms.ModelForm(*args, **kwargs)[source]#
A customized ModelForm class that filters ForeignKey queryset based on the operating user.
- Attributes:
exclude_models (list): A list of model names to exclude from ForeignKey queryset filtering.
- property media#
Return all media required to render the widgets on this form.