mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Fix search filter tests against Django 2.2.
Django 2.2 enables foreign key constraint checking on SQLite.
This commit is contained in:
parent
606dd49227
commit
cb4cbb61f2
|
@ -221,7 +221,7 @@ class SearchFilterM2MTests(TestCase):
|
||||||
# ...
|
# ...
|
||||||
for idx in range(3):
|
for idx in range(3):
|
||||||
label = 'w' * (idx + 1)
|
label = 'w' * (idx + 1)
|
||||||
AttributeModel(label=label)
|
AttributeModel.objects.create(label=label)
|
||||||
|
|
||||||
for idx in range(10):
|
for idx in range(10):
|
||||||
title = 'z' * (idx + 1)
|
title = 'z' * (idx + 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user