Fix the typing of slug_field in SlugRelatedField #9789
Unanswered
lev-blit
asked this question in
Ideas & Suggestions
Replies: 0 comments
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.
-
The field was talked about a bit in #8669, but I'd like to go further into this
Currently,
SlugRelatedField's__init__method has a default value ofNoneforslug_field, but the first line of the method is assertingslug_field is not None, meaning it can't really beNoneThe parameter should not have a default of
=NoneBeta Was this translation helpful? Give feedback.
All reactions