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

Clarify deconstruct() in Custom Model Field docs #11074

Merged
merged 1 commit into from Mar 12, 2019

Conversation

Projects
None yet
3 participants
@davidjb
Copy link
Contributor

davidjb commented Mar 11, 2019

This makes a minor change to the Custom Model Fields documentation that explains that field deconstruction is used during model migration & further explains the second example. For a new reader, it wasn't exactly clear why one needed to write a deconstruct() method; the docs mentioned serialisation but omitted the purpose.

Let me know if this change is considered more than trivial and I'll open a Trac ticket.

@auvipy

auvipy approved these changes Mar 11, 2019

Copy link
Contributor

auvipy left a comment

nice

@timgraham timgraham force-pushed the davidjb:patch-2 branch from 8213b5f to 9fd90c4 Mar 12, 2019

@timgraham timgraham merged commit 9fd90c4 into django:master Mar 12, 2019

2 checks passed

docs Build #19084 ended
Details
pull-requests-javascript Build #15582 ended
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.