mirror of
https://github.com/django/django.git
synced 2025-10-27 07:36:08 +00:00
[4.0.x] Fixed #33333 -- Fixed setUpTestData() crash with models.BinaryField on PostgreSQL.
This makes models.BinaryField pickleable on PostgreSQL. Regression in3cf80d3fcf. Thanks Adam Zimmerman for the report. Backport of2c7846d992from main.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user