Update the sampledatahelper version and use file_from_directory

remotes/origin/enhancement/email-actions
Jesús Espino 2014-09-01 18:15:08 +02:00
parent 2f0471a3a4
commit 530c459687
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ djangorestframework==2.3.13
Django==1.6.6 Django==1.6.6
South==0.8.4 South==0.8.4
django-picklefield==0.3.1 django-picklefield==0.3.1
django-sampledatahelper==0.2.1 django-sampledatahelper==0.2.2
gunicorn==18.0 gunicorn==18.0
psycopg2==2.5.3 psycopg2==2.5.3
pytz==2014.4 pytz==2014.4

View File

@ -200,7 +200,7 @@ class Command(BaseCommand):
object_id=object.id, object_id=object.id,
owner=self.sd.db_object_from_queryset( owner=self.sd.db_object_from_queryset(
object.project.memberships.filter(user__isnull=False)).user, 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)) *ATTACHMENT_SAMPLE_DATA))
return attachment return attachment