Browse Source

Tags can have slashes, too, as a treat

Getty Ritter 4 years ago
parent
commit
7847fb41b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lc/model.py

+ 1 - 1
lc/model.py

@@ -224,7 +224,7 @@ class Tag(Model):
 
     @staticmethod
     def is_valid_tag_name(tag_name: str) -> bool:
-        return all((c.isalnum() for c in tag_name))
+        return all((c.isalnum() or c == '/' for c in tag_name))
 
     @staticmethod
     def get_or_create_tag(user: User, tag_name: str) -> 'Tag':