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