Browse Source

[desktop] Fix a typo in sync_documents

Erick Tryzelaar 10 years ago
parent
commit
7e0b01160b
1 changed files with 1 additions and 1 deletions
  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()