Parcourir la source

[desktop] Fix a typo in sync_documents

Erick Tryzelaar il y a 10 ans
Parent
commit
7e0b01160b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      desktop/core/src/desktop/models.py

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -355,7 +355,7 @@ class DocumentManager(models.Manager):
         for doc in Document.objects.filter(owner__username=SAMPLE_USERNAME):
           doc.share_to_default()
 
-          tag = DocumentTag.objects.get_example_tag(user=job.owner)
+          tag = DocumentTag.objects.get_example_tag(user=doc.owner)
           doc.tags.add(tag)
 
           doc.save()