From 530c45968724280ee25a0ed6c5ab60b4f6cfa5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 1 Sep 2014 18:15:08 +0200 Subject: [PATCH] Update the sampledatahelper version and use file_from_directory --- requirements.txt | 2 +- taiga/projects/management/commands/sample_data.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 7d05bfde..f60ceb45 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ djangorestframework==2.3.13 Django==1.6.6 South==0.8.4 django-picklefield==0.3.1 -django-sampledatahelper==0.2.1 +django-sampledatahelper==0.2.2 gunicorn==18.0 psycopg2==2.5.3 pytz==2014.4 diff --git a/taiga/projects/management/commands/sample_data.py b/taiga/projects/management/commands/sample_data.py index 2cc215db..b9288034 100644 --- a/taiga/projects/management/commands/sample_data.py +++ b/taiga/projects/management/commands/sample_data.py @@ -200,7 +200,7 @@ class Command(BaseCommand): object_id=object.id, owner=self.sd.db_object_from_queryset( object.project.memberships.filter(user__isnull=False)).user, - attached_file=self.sd.image_from_directory( + attached_file=self.sd.file_from_directory( *ATTACHMENT_SAMPLE_DATA)) return attachment