1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

Fixed #33333 -- Fixed setUpTestData() crash with models.BinaryField on PostgreSQL.

This makes models.BinaryField pickleable on PostgreSQL.

Regression in 3cf80d3fcf.

Thanks Adam Zimmerman for the report.
This commit is contained in:
Mariusz Felisiak
2021-12-03 11:56:22 +01:00
committed by GitHub
parent 9c1fe446b6
commit 2c7846d992
6 changed files with 42 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ class Happening(models.Model):
number1 = models.IntegerField(blank=True, default=standalone_number)
number2 = models.IntegerField(blank=True, default=Numbers.get_static_number)
event = models.OneToOneField(Event, models.CASCADE, null=True)
data = models.BinaryField(null=True)
class Container: