From e3580cbbcf73f5bb0d9a456d04750e99de1be937 Mon Sep 17 00:00:00 2001 From: Diederik van der Boor Date: Thu, 15 Dec 2016 12:42:20 +0100 Subject: [PATCH] Fix slot parameter in factories.create_placeholder() --- fluent_contents/tests/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluent_contents/tests/factories.py b/fluent_contents/tests/factories.py index dbbd75f3..9932e7bc 100644 --- a/fluent_contents/tests/factories.py +++ b/fluent_contents/tests/factories.py @@ -16,7 +16,7 @@ def create_placeholder(page=None, slot=None): if page is None: page = create_page() - return Placeholder.objects.create_for_object(page, slot='field_slot1') + return Placeholder.objects.create_for_object(page, slot=slot or 'field_slot1') def create_content_item(ContentItemModel, placeholder=None, sort_order=1, language_code=None, **item_kwargs):