Skip to content
New issue

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

Remove redundant instance variables "context" and "instance" #11

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

jonathan-s
Copy link
Owner

The following two instance variables "context" and "instance" are no longer set in the "from_django" function as these have no use.

The "dump" parameter is also removed, as it was added by mistake in the refactor to accomodate pydantic 2.

fixes #10

@jonathan-s
Copy link
Owner Author

Blocked by pydantic/pydantic#9633, or that seems to be the issue why test is failing.

The following two instance variables "context" and
"instance" are no longer set in the "from_django"
function as these have no use.

The "dump" parameter is also removed, as it was
added by mistake in the refactor to accomodate
pydantic 2.
@jonathan-s jonathan-s force-pushed the remove-instance-vars branch from 6f3bf44 to 512a793 Compare June 11, 2024 20:13
@jonathan-s jonathan-s merged commit 7cc6214 into main Jun 11, 2024
5 checks passed
@jonathan-s jonathan-s deleted the remove-instance-vars branch June 11, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Thread safety issue in from_django
1 participant