|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# Generated by Django 1.10.8 on 2017-09-27 10:29 |
| 3 | +from __future__ import unicode_literals |
| 4 | + |
| 5 | +from django.db import migrations |
| 6 | + |
| 7 | +def forwards(apps,schema_editor): |
| 8 | + DocUrlTagName = apps.get_model('name','DocUrlTagName') |
| 9 | + |
| 10 | + DocUrlTagName.objects.create( |
| 11 | + slug='wiki', |
| 12 | + name='Document wiki', |
| 13 | + ) |
| 14 | + DocUrlTagName.objects.create( |
| 15 | + slug='issues', |
| 16 | + name='Document Issue Tracker', |
| 17 | + ) |
| 18 | + DocUrlTagName.objects.create( |
| 19 | + slug='repository', |
| 20 | + name='Document Source Repository', |
| 21 | + ) |
| 22 | + DocUrlTagName.objects.create( |
| 23 | + slug='yang-module', |
| 24 | + name='Extracted Yang Module', |
| 25 | + ) |
| 26 | + DocUrlTagName.objects.create( |
| 27 | + slug='yang-impact-analysis', |
| 28 | + name='Yang Impact Analysis', |
| 29 | + ) |
| 30 | + DocUrlTagName.objects.create( |
| 31 | + slug='yang-module-metadata', |
| 32 | + name='Yang module metadata', |
| 33 | + ) |
| 34 | + |
| 35 | +def backwards(apps,schema_editor): |
| 36 | + pass |
| 37 | + |
| 38 | + |
| 39 | +class Migration(migrations.Migration): |
| 40 | + |
| 41 | + dependencies = [ |
| 42 | + ('name', '0027_docurltagname'), |
| 43 | + ('doc', '0034_documenturl'), |
| 44 | + ] |
| 45 | + |
| 46 | + operations = [ |
| 47 | + migrations.RunPython(forwards, backwards), |
| 48 | + ] |
0 commit comments