Add slugs to indexes to be able to reference them from the mirroring app.

This commit is contained in:
Roberto Rosario
2015-07-28 21:54:40 -04:00
parent 6039ea86ec
commit e4fa3c4960
5 changed files with 72 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('document_indexing', '0004_auto_20150708_0113'),
]
operations = [
migrations.AddField(
model_name='index',
name='slug',
field=models.SlugField(null=True, max_length=128, blank=True, help_text='This values will be used by other apps to reference this index.', unique=True, verbose_name='Slug'),
preserve_default=True,
),
]