Fix search filter tests against Django 2.2.

Django 2.2 enables foreign key constraint checking on SQLite.
This commit is contained in:
Carlton Gibson 2019-02-14 08:50:27 +01:00
parent 606dd49227
commit cb4cbb61f2

View File

@ -221,7 +221,7 @@ class SearchFilterM2MTests(TestCase):
# ...
for idx in range(3):
label = 'w' * (idx + 1)
AttributeModel(label=label)
AttributeModel.objects.create(label=label)
for idx in range(10):
title = 'z' * (idx + 1)