Browse Source

handle tags on views as on model

Markos Gogoulos 2 năm trước cách đây
mục cha
commit
d6f46e0e94
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)