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

Make Field.db_parameters() use db_type() #2425

Closed
wants to merge 1 commit into from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Mar 12, 2014

This reverts parts of ca9c3cd, which appear to have been made unintentionally.

It removes support for db_type to return the "CHECK (%s)" constraint suffix.
Internal code appears to use db_parameters for this.

Fixes https://code.djangoproject.com/ticket/22260.

This needs tests. Please point me at where to put them, and how to test this best.

This reverts parts of ca9c3cd, which appear to have been made unintentionally.

It removes support for `db_type` to return the "CHECK (%s)" constraint suffix.
Internal code appears to use `db_parameters` for this.

Fixes #22260.
@ericpalakovichcarr
Copy link
Contributor

This seems to work well. Could you make this PR against my (@BigSassy) public django repository, so I can then merge it into my pull request? I have the testing in place for migrations in Geodjango. With your code I think we'll have these tickets solved.

@blueyed
Copy link
Contributor Author

blueyed commented Mar 13, 2014

@BigSassy
Great!
I think you can better cherry-pick it from my repo:

git remote add blueyed https://github.com/blueyed/django
git fetch blueyed
# (in your branch):
git cherry-pick f1b2e7d0b48c2be6177100c67e8d339ee02e2bf4

btw: when using hub, it would be just git cherry-pick https://github.com/blueyed/django/commit/f1b2e7d0b48c2be6177100c67e8d339ee02e2bf4.

If you still think, I should open a PR on your repo, then you should probably sync/update it first (it's 16 days behind).

@ericpalakovichcarr
Copy link
Contributor

Got it, and thanks! I'm new to this stuff, so I appreciate you spelling out how to get your code into mine :)

@mjtamlyn
Copy link
Member

Closing in favour of #2366

@mjtamlyn mjtamlyn closed this Mar 13, 2014
@blueyed blueyed deleted the fix-overriding-fields-db_type branch March 25, 2017 21:40
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