We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model_to_dict
exclude
set
#637 was opened about model_to_dict not allowing set. This was fixed in #640 via typing.Collection.
typing.Collection
However, #909 seems to have clobbered that change :/
So this issue is to bring back #640 changes
https://github.com/typeddjango/django-stubs/blob/4.2.7/django-stubs/forms/models.pyi#L37
Currently, model_to_dict's exclude is set to allow lists or tuples, but not a set.
list
tuple
Looking at model_to_dict, it should allow a Collection.
Collection
django-stubs
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug report
#637 was opened about
model_to_dict
not allowingset
. This was fixed in #640 viatyping.Collection
.However, #909 seems to have clobbered that change :/
So this issue is to bring back #640 changes
What's wrong
https://github.com/typeddjango/django-stubs/blob/4.2.7/django-stubs/forms/models.pyi#L37
Currently,
model_to_dict
'sexclude
is set to allowlist
s ortuple
s, but not aset
.How is that should be
Looking at
model_to_dict
, it should allow aCollection
.System information
django-stubs
version: 4.2.7The text was updated successfully, but these errors were encountered: