Run Migrations! Made Tags unique based on the combination of their db_key, db_category AND their db_tagtype fields.

This commit is contained in:
Griatch 2014-06-30 20:14:58 +02:00
parent ea059e9874
commit cda13989f6
3 changed files with 87 additions and 35 deletions

View file

@ -539,8 +539,8 @@ class Tag(models.Model):
class Meta:
"Define Django meta options"
verbose_name = "Tag"
unique_together = (('db_key', 'db_category'),)
index_together = (('db_key', 'db_category'),)
unique_together = (('db_key', 'db_category', 'db_tagtype'),)
index_together = (('db_key', 'db_category', 'db_tagtype'),)
def __unicode__(self):
return u"%s" % self.db_key