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 ofNone
forslug_field
, but the first line of the method is assertingslug_field is not None
, meaning it can't really beNone
The parameter should not have a default of
=None
Beta Was this translation helpful? Give feedback.
All reactions