Make it possible to reverse migrations

This commit is contained in:
Venelin Stoykov 2017-09-05 18:09:07 +03:00 committed by Matt Westcott
parent d17caef271
commit f0e9258af9
4 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,8 @@ Changelog
1.12.2 (xx.xx.xxxx) - IN DEVELOPMENT
~~~~~~~~~~~~~~~~~~~
* Fix: Migration for addition of ``Page.draft_title`` field is now reversible (Venelin Stoykov)
1.12.1 (30.08.2017)
~~~~~~~~~~~~~~~~~~~

View file

@ -249,6 +249,7 @@ Contributors
* Levi Adler
* Edwar Baron
* Tomasz Knapik
* Venelin Stoykov
Translators
===========

View file

@ -13,3 +13,4 @@ What's new
Bug fixes
~~~~~~~~~
* Migration for addition of ``Page.draft_title`` field is now reversible (Venelin Stoykov)

View file

@ -25,5 +25,5 @@ class Migration(migrations.Migration):
field=models.CharField(default='', editable=False, max_length=255),
preserve_default=False,
),
migrations.RunPython(draft_title),
migrations.RunPython(draft_title, migrations.RunPython.noop),
]