From 686a593aaadb1c2e2053fee8c401476dcb4617a5 Mon Sep 17 00:00:00 2001 From: Michal Petrucha Date: Sun, 22 May 2016 21:10:24 +0200 Subject: Fixed #26648 -- Added a system check for invalid related_query_name's containing underscores. --- docs/ref/checks.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 18b6d88add..074a901de8 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -206,6 +206,10 @@ Related Fields * **fields.E307**: The field ``..`` was declared with a lazy reference to ``.``, but app ```` isn't installed or doesn't provide model ````. +* **fields.E308**: Reverse query name ```` must not end + with an underscore. +* **fields.E309**: Reverse query name ```` must not contain + ``'__'``. * **fields.E310**: No subset of the fields ````, ````, ... on model ```` is unique. Add ``unique=True`` on any of those fields or add at least a subset of them to a unique_together constraint. -- cgit v1.3