diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2013-11-02 21:16:33 +0200 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2013-11-02 21:18:35 +0200 |
| commit | 9f76ea1eaad0db0183fa3b5bade16392db0cafbd (patch) | |
| tree | 4342e8d48db5b9a4b240f8c9c71e87924ba05a77 /django/core | |
| parent | 18c642b96c5160d13971f7699a43d0f672435b26 (diff) | |
Fixed #21375 -- related_name='+' clashed with other '+' names
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/management/validation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/validation.py b/django/core/management/validation.py index 4ec421c699..90a78403fb 100644 --- a/django/core/management/validation.py +++ b/django/core/management/validation.py @@ -309,7 +309,7 @@ def get_validation_errors(outfile, app=None): # occurs for symmetrical m2m relations to self). If this is the # case, there are no clashes to check for this field, as there are # no reverse descriptors for this field. - if rel_name is not None: + if not f.rel.is_hidden(): for r in rel_opts.fields: if r.name == rel_name: e.add(opts, "Accessor for m2m field '%s' clashes with field '%s.%s'. Add a related_name argument to the definition for '%s'." % (f.name, rel_opts.object_name, r.name, f.name)) |
