#30611: Add reversal options object to django migration constructs/class
constructors
-----------------------------------------+------------------------
Reporter: Datamance | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
See https://code.djangoproject.com/ticket/23048#comment:4
To redress the unfortunate situation where one has to try to reverse the
deletion of a non-null field with no specified defaults:
{{{
#!div style="font-size: 80%"
Code highlighting:
{{{#!python
migrations.RemoveField(model_name="child", name="age_at_birth",
reversal_options={"null": True}),
}}}
}}}
A reversal object as such could be added to many of the migrations
constructs. Let me know if this needs clarification.
--
Ticket URL: <https://code.djangoproject.com/ticket/30611>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.a2800933937a5c9d55e3e2910b15a6d8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.