FilePathField loses required argument in init #8804
Unanswered
radekwlsk
asked this question in
Potential Issue
Replies: 1 comment 3 replies
-
you can come with a PR and ping me to fix the bug |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As
FilePathField
takesrequired
keyword argument explicitly (to be passed to theDjagnoFilePathField
used to build choices) it then "loses" it before calling thesuper().__init__(**kwargs)
.Therefore with:
we get bizzare result of:
Expected behaviour would be to add the
required
argument to super init call as well, not onlyDjagnoFilePathField
, like so:I would be more than happy to open a PR for that.
Beta Was this translation helpful? Give feedback.
All reactions