Skip to content
Snippets Groups Projects
Commit 6fd1a604 authored by Martin Burchell's avatar Martin Burchell
Browse files

Created migration for the 'free-tags' taxonomy

parent cda79b11
No related branches found
No related tags found
2 merge requests!46Tagging frontend,!45Add multiple terms api
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def create_taxonomy(apps, schema_editor):
Taxonomy = apps.get_model('taxonomies', 'Taxonomy')
taxonomy = Taxonomy(
name='Free Tags',
slug='free-tags',
multiplicity='multiple')
taxonomy.save()
class Migration(migrations.Migration):
dependencies = [
('hid', '0005_initial_tabbed_page'),
('taxonomies', '0003_taxonomy_multiplicity'),
]
operations = [
migrations.RunPython(create_taxonomy)
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment