Explorar o código

handle tags on views as on model

Markos Gogoulos %!s(int64=2) %!d(string=hai) anos
pai
achega
d6f46e0e94
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)