Browse Source

handle tags on views as on model

Markos Gogoulos 2 years ago
parent
commit
d6f46e0e94
1 changed files with 1 additions and 0 deletions
  1. 1 0
      files/views.py

+ 1 - 0
files/views.py

@@ -182,6 +182,7 @@ def edit_media(request):
             if form.cleaned_data.get("new_tags"):
                 for tag in form.cleaned_data.get("new_tags").split(","):
                     tag = get_alphanumeric_only(tag)
+                    tag = tag[:99]
                     if tag:
                         try:
                             tag = Tag.objects.get(title=tag)