diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2014-08-03 12:59:21 +0200 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-08-03 13:02:31 +0200 |
| commit | 72f1eb48df335c110f39d56f7978d95896a56bb8 (patch) | |
| tree | eebfa3fda53980bd60c7cdc59733beb556f910e8 /django | |
| parent | a9fa3d466771b1f5d05fcf55f94abfaf7b0c3258 (diff) | |
Fixed #23156 -- Added missing BinaryField.deconstruct() method.
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 3d8a5b79ad..a0f72a7fd6 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -2178,6 +2178,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" |
