mirror of
https://github.com/django/django.git
synced 2025-10-17 05:47:44 +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:
parent
07728a2c2c
commit
7c50e7eecc
3 changed files with 17 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue