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

Fixed #28431 -- Added a system check for BinaryField to prevent strings defaults. #11088

Merged
merged 1 commit into from Mar 25, 2019

Conversation

hramezani
Copy link
Member

ticket_28431.
Add system check to prevent string as the default value for BinaryField. based on @claudep suggestion on the ticket.

@felixxm felixxm changed the title Fixed #28431 -- Add system check to prevent string as the default value for BinaryField. Fixed #28431 -- Added check for BinaryField to prevent strings defaults. Mar 25, 2019
Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

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

@hramezani Thanks for this patch 👍 I left few comment. I think we should also credit Claude ⭐ in the commit message for the initial patch.

docs/ref/checks.txt Outdated Show resolved Hide resolved
django/db/models/fields/__init__.py Outdated Show resolved Hide resolved
django/db/models/fields/__init__.py Outdated Show resolved Hide resolved
django/db/models/fields/__init__.py Outdated Show resolved Hide resolved
tests/invalid_models_tests/test_ordinary_fields.py Outdated Show resolved Hide resolved
tests/invalid_models_tests/test_ordinary_fields.py Outdated Show resolved Hide resolved
tests/invalid_models_tests/test_ordinary_fields.py Outdated Show resolved Hide resolved
tests/invalid_models_tests/test_ordinary_fields.py Outdated Show resolved Hide resolved
tests/invalid_models_tests/test_ordinary_fields.py Outdated Show resolved Hide resolved
@hramezani
Copy link
Member Author

@felixxm Thanks for your comment 👍.
Done!

@hramezani hramezani force-pushed the ticket_28431 branch 2 times, most recently from 54765a1 to fd98cce Compare March 25, 2019 13:40
@felixxm felixxm force-pushed the ticket_28431 branch 2 times, most recently from 4115eca to e4b3ccf Compare March 25, 2019 18:49
@felixxm felixxm changed the title Fixed #28431 -- Added check for BinaryField to prevent strings defaults. Fixed #28431 -- Added a system check for BinaryField to prevent strings defaults. Mar 25, 2019
…gs defaults.

Thanks Claude Paroz for the initial patch.
@felixxm felixxm merged commit 981dd6d into django:master Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants