mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 07:27:17 +02:00
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:
parent
ea059e9874
commit
cda13989f6
3 changed files with 87 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue