mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24034 -- Don't always overwrite deconstruct path.
Made deconstruct path overwriting for ArrayField conditional, so it only occurs when the deconstructed field is an instance of ArrayField itself and not a subclass.
This commit is contained in:
@@ -32,3 +32,8 @@ class CharFieldModel(models.Model):
|
||||
|
||||
class TextFieldModel(models.Model):
|
||||
field = models.TextField()
|
||||
|
||||
|
||||
class ArrayFieldSubclass(ArrayField):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ArrayFieldSubclass, self).__init__(models.IntegerField())
|
||||
|
||||
Reference in New Issue
Block a user