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 #479 -- Make sure db_default is being considered #502

Merged
merged 5 commits into from
Sep 26, 2024
Merged

Conversation

berinhard
Copy link
Member

Closes #479

Describe the change
This PR changes the Baker.generate_value method to also consider the values configured in Field.db_default.

@berinhard berinhard requested a review from a team September 17, 2024 15:53
Copy link
Collaborator

@amureki amureki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thank you, Bernardo! 🫶

@amureki amureki changed the title Issue479 Fix #479 -- Make sure db_default is being considered as a default value Sep 20, 2024
@amureki amureki changed the title Fix #479 -- Make sure db_default is being considered as a default value Fix #479 -- Make sure db_default is being considered Sep 20, 2024
@berinhard
Copy link
Member Author

@amureki any instructions on how to fix the coverage issue on CI? This is kind of new to me, so I'm not familiar.

@amureki
Copy link
Collaborator

amureki commented Sep 20, 2024

@amureki any instructions on how to fix the coverage issue on CI? This is kind of new to me, so I'm not familiar.

Yeah, after rebasing, it should upload coverage artifacts and show an html report.

@berinhard berinhard merged commit e6ae935 into main Sep 26, 2024
9 checks passed
@berinhard berinhard deleted the issue479 branch September 26, 2024 07:55
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.

Django 5 db_default field parameter ignored when creating recipies
2 participants