diff options
Diffstat (limited to 'django/contrib/postgres/fields/array.py')
| -rw-r--r-- | django/contrib/postgres/fields/array.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/fields/array.py b/django/contrib/postgres/fields/array.py index 970355fd62..9da7ec4cb7 100644 --- a/django/contrib/postgres/fields/array.py +++ b/django/contrib/postgres/fields/array.py @@ -33,7 +33,7 @@ class ArrayField(Field): def check(self, **kwargs): errors = super(ArrayField, self).check(**kwargs) - if self.base_field.rel: + if self.base_field.remote_field: errors.append( checks.Error( 'Base field for array cannot be a related field.', |
