From 715aa2db67790926971610db232732694d5353bb Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 23 Sep 2021 10:36:30 +0200 Subject: [PATCH] [4.0.x] Fixed #33133 -- Fixed handling NullBooleanField in historical migrations. Regression in d992f4e3c29a81c956d3d616f0bc19701431b26e. Backport of 3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946 from main --- django/db/models/fields/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 1e8637d2f7..e79f4acf6c 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -1999,9 +1999,6 @@ class NullBooleanField(BooleanField): del kwargs['blank'] return name, path, args, kwargs - def get_internal_type(self): - return "NullBooleanField" - class PositiveIntegerRelDbTypeMixin: def __init_subclass__(cls, **kwargs):