Skip to content
Snippets Groups Projects
Commit 8f1d2cda authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

make name unique for Tags

parent 15c1460f
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-04-15 21:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0019_event_superevent'),
]
operations = [
migrations.AlterField(
model_name='tag',
name='name',
field=models.CharField(max_length=100, unique=True),
),
]
......@@ -807,7 +807,8 @@ class Tag(CleanSaveModel):
assumption that this will always be done. But is it really important to
track those things? Doesn't seem like it.
"""
name = models.CharField(max_length=100, null=False, blank=False)
name = models.CharField(max_length=100, null=False, blank=False,
unique=True)
displayName = models.CharField(max_length=200, null=True, blank=True)
def __unicode__(self):
......
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