AndrewIngram / django-extra-views

Django's class-based generic views are awesome, let's have more of them.
MIT License
1.39k stars 172 forks source link

How i can render a from based on login user not all user? #219

Closed AhmedSalam22 closed 4 years ago

AhmedSalam22 commented 4 years ago

How i can render a from based on login user not all user?

AhmedSalam22 commented 4 years ago

I mean filter Foreign key based on the user login? please help

AhmedSalam22 commented 4 years ago

@jonashaag I have solved the problem by overriding some method and add request as parameter then pass request.user to the constructor of the form

jonashaag commented 4 years ago

Great!