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

fix: auto now fields should be skipped #507

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mattwang44
Copy link

Describe the change

  • Issue: When baker.make with _fill_optional set as True, the values of those DateTimeField with auto_now_add=True or auto_now=True from the resulting instance are different from the value stored in DB.
    • The test case from the first commit is to reproduce the issue image
  • solution: skip the auto datetime fields

PR Checklist

  • Change is covered with tests
  • CHANGELOG.md is updated if needed

@mattwang44
Copy link
Author

mattwang44 commented Oct 10, 2024

could possibly resolve #469

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.

1 participant