This fixes Javascript widgets working with DocAliases, such as the replaces field in draft submission, to work better with Javascript disabled. It also makes sense from a modelling perspective as the name really is a unique key for the alias. The actual transformation requires a series of migrations taking a couple of minutes to complete. The actual switch to the key is done at the end. Branch ready for merge. - Legacy-Id: 10111
33 lines
769 B
Python
33 lines
769 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('doc', '0007_auto_20150929_0840'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveField(
|
|
model_name='relateddochistory',
|
|
name='target',
|
|
),
|
|
migrations.RenameField(
|
|
model_name='relateddochistory',
|
|
old_name='target_name',
|
|
new_name='target',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='relateddocument',
|
|
name='target',
|
|
),
|
|
migrations.RenameField(
|
|
model_name='relateddocument',
|
|
old_name='target_name',
|
|
new_name='target',
|
|
),
|
|
]
|