mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2026-02-04 14:52:11 +00:00
Make Tag.name unique
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Tag(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
name = models.CharField(max_length=100, unique=True, db_index=True)
|
||||
description = models.TextField(blank=True, default="")
|
||||
icon = models.ImageField(upload_to="types/icons/", null=True, blank=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user