From 8f30556329b64005d63b66859a74752a0b261315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Thu, 26 Feb 2015 16:19:17 +0200 Subject: Renamed Field.rel attribute to remote_field Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True. --- django/contrib/postgres/fields/array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/contrib/postgres/fields/array.py') 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.', -- cgit v1.2.1