diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2014-08-03 12:59:21 +0200 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-08-03 15:28:14 +0200 |
| commit | 23b0d636d3dc8b37fee6dc7539b0cd1f245b673a (patch) | |
| tree | 0c3f1fa4efe5174a6c61f09ae865410c4d0343c6 /django | |
| parent | 0b1d0afc92e1dbc353418953960a083cbba63c50 (diff) | |
[1.7.x] Fixed #23156 -- Added missing BinaryField.deconstruct() method.
Backport of 72f1eb48df335c110f39d56f7978d95896a56bb8 from master.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/fields/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 824200aba3..0db51ca60d 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -2014,6 +2014,11 @@ class BinaryField(Field): if self.max_length is not None: self.validators.append(validators.MaxLengthValidator(self.max_length)) + def deconstruct(self): + name, path, args, kwargs = super(BinaryField, self).deconstruct() + del kwargs['editable'] + return name, path, args, kwargs + def get_internal_type(self): return "BinaryField" |
