Separated schema and data migrations.
- Legacy-Id: 14174
This commit is contained in:
parent
7530e4cec3
commit
c7f4f82c31
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -21,6 +21,7 @@
|
|||
/.Python
|
||||
/.settings
|
||||
/.tmp
|
||||
/.factoryboy_random_state
|
||||
/bin
|
||||
/etc
|
||||
/ghostdriver.log
|
||||
|
|
36
changelog
36
changelog
|
@ -1,3 +1,39 @@
|
|||
ietfdb (6.63.0) ietf; urgency=medium
|
||||
|
||||
**Support for document-specific URL annotations**
|
||||
|
||||
This release adds support for document-specific URL annotations; look
|
||||
for 'Additional URLs' on the draft status page. These can be edited
|
||||
by the group chairs for group drafts and by the authors for individual
|
||||
drafts. There are also some changes and enhancements related to the
|
||||
submission automation API.
|
||||
|
||||
Commit log extract:
|
||||
|
||||
* Tweaked the submission search form to accept draft names which include
|
||||
revision numbers. Fixes issue #2380.
|
||||
|
||||
* Added a cancel button to the submission confirmation page. Fixes issue
|
||||
#2349.
|
||||
|
||||
* Removed the repeat of the error message in the HTTP reason string.
|
||||
Fixes issue #2378.
|
||||
|
||||
* Added 'Additional URLs' for documents, the same way we have them for
|
||||
groups. This could be used to point to a document source repository, to
|
||||
extracted yang module files, document wikis, and other relevant resources.
|
||||
|
||||
* Added migrations for document url model changes. Updated the name
|
||||
fixtures. Added ability for individual draft authors to edit document urls.
|
||||
|
||||
* Removed some unreachable code.
|
||||
|
||||
* Another tweak to the draft author extraction code, to handle some name
|
||||
transliterations using multiple leading grave accents.
|
||||
|
||||
-- Henrik Levkowetz <henrik@levkowetz.com> 27 Sep 2017 08:33:16 -0700
|
||||
|
||||
|
||||
ietfdb (6.62.1) ietf; urgency=medium
|
||||
|
||||
This is a bugfix release which also brings in a utility script to add
|
||||
|
|
|
@ -4,37 +4,6 @@ from __future__ import unicode_literals
|
|||
|
||||
from django.db import migrations, models
|
||||
|
||||
def forwards(apps,schema_editor):
|
||||
DocUrlTagName = apps.get_model('name','DocUrlTagName')
|
||||
|
||||
DocUrlTagName.objects.create(
|
||||
slug='wiki',
|
||||
name='Document wiki',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='issues',
|
||||
name='Document Issue Tracker',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='repository',
|
||||
name='Document Source Repository',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='yang-module',
|
||||
name='Extracted Yang Module',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='yang-impact-analysis',
|
||||
name='Yang Impact Analysis',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='yang-module-metadata',
|
||||
name='Yang module metadata',
|
||||
)
|
||||
|
||||
def backwards(apps,schema_editor):
|
||||
pass
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
|
@ -56,7 +25,6 @@ class Migration(migrations.Migration):
|
|||
'abstract': False,
|
||||
},
|
||||
),
|
||||
migrations.RunPython(forwards, backwards),
|
||||
]
|
||||
|
||||
|
||||
|
|
48
ietf/name/migrations/0028_add_docurltagname_entries.py
Normal file
48
ietf/name/migrations/0028_add_docurltagname_entries.py
Normal file
|
@ -0,0 +1,48 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.8 on 2017-09-27 10:29
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
def forwards(apps,schema_editor):
|
||||
DocUrlTagName = apps.get_model('name','DocUrlTagName')
|
||||
|
||||
DocUrlTagName.objects.create(
|
||||
slug='wiki',
|
||||
name='Document wiki',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='issues',
|
||||
name='Document Issue Tracker',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='repository',
|
||||
name='Document Source Repository',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='yang-module',
|
||||
name='Extracted Yang Module',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='yang-impact-analysis',
|
||||
name='Yang Impact Analysis',
|
||||
)
|
||||
DocUrlTagName.objects.create(
|
||||
slug='yang-module-metadata',
|
||||
name='Yang module metadata',
|
||||
)
|
||||
|
||||
def backwards(apps,schema_editor):
|
||||
pass
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('name', '0027_docurltagname'),
|
||||
('doc', '0034_documenturl'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(forwards, backwards),
|
||||
]
|
Loading…
Reference in a new issue