django-multi-form-view icon indicating copy to clipboard operation
django-multi-form-view copied to clipboard

How can i filter form based on the current user?

Open AhmedSalam22 opened this issue 4 years ago • 0 comments

How can i filter form based on the current login user?

ex doen't work

def __init__(self,  **kwargs):
    super().__init__(**kwargs)
    self.form.fields["field"].queryset = model.objects.filter(owner=self.request.user)

AhmedSalam22 avatar Nov 29 '20 13:11 AhmedSalam22