[Django] #30611: Add reversal options object to django migration constructs/class constructors

8 views
Skip to first unread message

Django

unread,
Jul 3, 2019, 11:43:16 AM7/3/19
to django-...@googlegroups.com
#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.

Django

unread,
Jul 3, 2019, 11:53:29 AM7/3/19
to django-...@googlegroups.com
#30611: Add reversal options object to django migration constructs/class
constructors
-----------------------------+--------------------------------------
Reporter: Datamance | Owner: nobody
Type: New feature | Status: closed
Component: Migrations | Version: master
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => duplicate
* version: 1.11 => master
* component: Uncategorized => Migrations
* type: Uncategorized => New feature


Comment:

Duplicate of #23048. Please do not add duplicates of wontfix tickets and
[https://docs.djangoproject.com/en/stable/internals/contributing/triaging-
tickets/#closing-tickets follow triaging guidelines with regards to
wontfix tickets.]

--
Ticket URL: <https://code.djangoproject.com/ticket/30611#comment:1>

Reply all
Reply to author
Forward
0 new messages