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

Add deconstruct to model fields #224

Merged
merged 3 commits into from
Apr 14, 2016

Conversation

benkonrath
Copy link
Member

This builds on the @mlissner's commit in PR #162. I've added a deconstruct method to all model fields. I've also added a generic test for the deconstruct as well as a test for the options in the IBAN Field. It would be great if somebody could review this and provide feedback. Thanks.

Closes #162

Format is cribbed from the `deconstruct` method's documentation, which provides clear examples for how to write these methods. To do this, I needed to import the models into the tests, which created some fun namespace problems.
@benkonrath benkonrath changed the title Add deconstruct to models Add deconstruct to model fields Apr 10, 2016
@benkonrath
Copy link
Member Author

The Python 3.2 test failure only happens with the Travis version of Python 3.2.5. I can't reproduce the problem on my local system with Python 3.2.6. I need to think about how I can get around this but the general PR is still ready for feedback.

@benkonrath benkonrath added this to the 1.3 milestone Apr 10, 2016
@benkonrath benkonrath force-pushed the add-deconstruct-to-models branch from 9cbbff3 to 906f160 Compare April 11, 2016 07:24
@benkonrath benkonrath added the bug label Apr 11, 2016
@benkonrath
Copy link
Member Author

Tests are now passing.

@benkonrath benkonrath force-pushed the add-deconstruct-to-models branch from 906f160 to 8ffa807 Compare April 11, 2016 07:54
@benkonrath benkonrath merged commit 8ffa807 into django:master Apr 14, 2016
@benkonrath benkonrath deleted the add-deconstruct-to-models branch December 5, 2017 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants