Explorar o código

HUE-3141 [doc2] Remove unused tags field from import

Jenny Kim %!s(int64=9) %!d(string=hai) anos
pai
achega
064ed583f6
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      desktop/core/src/desktop/api2.py

+ 0 - 2
desktop/core/src/desktop/api2.py

@@ -345,8 +345,6 @@ def import_documents(request):
       doc['fields']['owner'] = [request.user.username]
     owner = doc['fields']['owner'][0]
 
-    doc['fields']['tags'] = []
-
     # TODO: Check if this should be replaced by get_by_uuid
     if Document2.objects.filter(uuid=doc['fields']['uuid'], owner__username=owner).exists():
       doc['pk'] = Document2.objects.get(uuid=doc['fields']['uuid'], owner__username=owner).pk