aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers/tag.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/controllers/tag.py')
-rw-r--r--src/web/controllers/tag.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/controllers/tag.py b/src/web/controllers/tag.py
index a40387c9..203e9a7e 100644
--- a/src/web/controllers/tag.py
+++ b/src/web/controllers/tag.py
@@ -15,5 +15,9 @@ class BookmarkTagController(AbstractController):
def count_by_href(self, **filters):
return self._count_by(BookmarkTag.text, filters)
+ def create(self, **attrs):
+ attrs['text'] = attrs['text'].lower()
+ return super().create(**attrs)
+
def update(self, filters, attrs):
return super().update(filters, attrs)
bgstack15