Change Tag primary key to id
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ VERBOSE_NAME = _('Webapp')
|
||||
class Tag(models.Model):
|
||||
"""Model for tag."""
|
||||
|
||||
slug = models.SlugField(primary_key=True)
|
||||
slug = models.SlugField(unique=True)
|
||||
name = models.CharField(max_length=127)
|
||||
icon = models.ImageField()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user