1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Refs #33333 -- Fixed PickleabilityTestCase.test_annotation_with_callable_default() crash on Oracle.

Grouping by LOBs is not allowed on Oracle. This moves a binary field to
a separate model.
This commit is contained in:
Mariusz Felisiak
2021-12-04 15:55:03 +01:00
committed by GitHub
parent d3f4c2b95d
commit d3a64bea51
2 changed files with 8 additions and 3 deletions

View File

@@ -46,6 +46,9 @@ 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)
class BinaryFieldModel(models.Model):
data = models.BinaryField(null=True)