Allow queryset for RelatedField to be a callable #8831
Unanswered
tuky
asked this question in
Ideas & Suggestions
Replies: 1 comment 1 reply
-
I agree this would be a useful feature.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to suggest this to make 2 use cases easier:
context
so you can for example filter on the authenticated user without overriding each such field (see Document how to handle permissions and filtering for related fields. #1985)Package.objects.filter(expiration__lt=timezone.now())
which we really need to be lazy.What do you think? Thx!
Beta Was this translation helpful? Give feedback.
All reactions