Commit 3005a3ef authored by Tom van Bussel's avatar Tom van Bussel
Browse files

fix bug in album upload tests

parent 470428e8
......@@ -15,6 +15,7 @@ def add_digests(apps, schema_editor):
photo.save()
class Migration(migrations.Migration):
atomic = False
dependencies = [
('photos', '0007_auto_20170218_2142'),
......
......@@ -64,7 +64,7 @@ class AlbumUploadTest(TestCase):
"album_archive": output_file},
follow=True)
pk = Photo.objects.first().pk
pk = Album.objects.first().pk
self.client.post('/admin/photos/album/{}/change/'.format(pk),
{"title": "test album",
"date": "2017-04-12",
......@@ -85,7 +85,7 @@ class AlbumUploadTest(TestCase):
follow=True)
output_file = create_zip(["photos/fixtures/janbeleid-hoe.jpg"])
pk = Photo.objects.first().pk
pk = Album.objects.first().pk
self.client.post('/admin/photos/album/{}/change/'.format(pk),
{"title": "test album",
"date": "2017-04-12",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment