GenericViewSet default queryset error using model.objects.first() #8546
Unanswered
HelloMinchan
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am using DRF GenericViewSet for my project.
Here is my issue code!
Error
Behavior : When I create some new field into Test Model, below line causes the error.
Question : What is the difference between first() and all()?
Beta Was this translation helpful? Give feedback.
All reactions