encode / django-vanilla-views

Beautifully simple class-based views.
http://django-vanilla-views.org/
BSD 2-Clause "Simplified" License
985 stars 74 forks source link

accessing request in get_queryset #123

Closed ayushin closed 2 years ago

ayushin commented 2 years ago

it would be great if request object was accessible in get_queryset()

would it be an option to save request in get() to self.request before calling get_queryset?

adamchainz commented 2 years ago

I believe it already available as self.request, because Django’s View class does so here:

https://github.com/django/django/blob/e361621dbc77b5d926ec4deff5e7c792a61db71e/django/views/generic/base.py#L89

Can you check that?

ayushin commented 2 years ago

sorry had a long day

ayushin commented 2 years ago

sorry had a long day