summaryrefslogtreecommitdiff
path: root/tests/model_options
diff options
context:
space:
mode:
authorAnssi Kääriäinen <anssi.kaariainen@thl.fi>2015-02-26 16:19:17 +0200
committerTim Graham <timograham@gmail.com>2015-03-25 08:16:12 -0400
commit8f30556329b64005d63b66859a74752a0b261315 (patch)
tree73b5ac8d3be457f8061aa270437c9a957d2d622c /tests/model_options
parentf9c70bb3a1239ed1e04a769fd323286a5b1fde20 (diff)
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.
Diffstat (limited to 'tests/model_options')
-rw-r--r--tests/model_options/models/tablespaces.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/model_options/models/tablespaces.py b/tests/model_options/models/tablespaces.py
index 7328a3df6e..42fe1356c8 100644
--- a/tests/model_options/models/tablespaces.py
+++ b/tests/model_options/models/tablespaces.py
@@ -42,8 +42,8 @@ class Article(models.Model):
# Also set the tables for automatically created models
-Authors = Article._meta.get_field('authors').rel.through
+Authors = Article._meta.get_field('authors').remote_field.through
Authors._meta.db_table = 'model_options_articleref_authors'
-Reviewers = Article._meta.get_field('reviewers').rel.through
+Reviewers = Article._meta.get_field('reviewers').remote_field.through
Reviewers._meta.db_table = 'model_options_articleref_reviewers'