mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
add tag cli option
This commit is contained in:
parent
334061f17e
commit
fea0b89dbe
3 changed files with 39 additions and 13 deletions
|
@ -33,8 +33,11 @@ class Tag(models.Model):
|
|||
Based on django-taggit model
|
||||
"""
|
||||
name = models.CharField(unique=True, blank=False, max_length=100)
|
||||
|
||||
# slug is autoset on save from name, never set it manually
|
||||
slug = models.SlugField(unique=True, blank=True, max_length=100)
|
||||
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Tag"
|
||||
verbose_name_plural = "Tags"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue