Update the sampledatahelper version and use file_from_directory
parent
2f0471a3a4
commit
530c459687
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue