mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +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):
|
||||
label = 'w' * (idx + 1)
|
||||
AttributeModel(label=label)
|
||||
AttributeModel.objects.create(label=label)
|
||||
|
||||
for idx in range(10):
|
||||
title = 'z' * (idx + 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user