From cb724ef6c0fd71cd5bdbdc27c02f4da0f7e2ad08 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 3 Dec 2021 11:56:22 +0100 Subject: [3.2.x] Fixed #33333 -- Fixed setUpTestData() crash with models.BinaryField on PostgreSQL. This makes models.BinaryField pickleable on PostgreSQL. Regression in 3cf80d3fcf7446afdde16a2be515c423f720e54d. Thanks Adam Zimmerman for the report. Backport of 2c7846d992ca512d36a73f518205015c88ed088c from main. --- tests/test_utils/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test_utils/models.py') diff --git a/tests/test_utils/models.py b/tests/test_utils/models.py index b0497f12b9..57518aef90 100644 --- a/tests/test_utils/models.py +++ b/tests/test_utils/models.py @@ -8,6 +8,7 @@ class Car(models.Model): class Person(models.Model): name = models.CharField(max_length=100) cars = models.ManyToManyField(Car, through='PossessedCar') + data = models.BinaryField(null=True) class PossessedCar(models.Model): -- cgit v1.3