﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28332	Diamond multiple inheritance example in docs gives a clashing field check error	Luc Saffre	Jeremy Satterfield	"I need help with getting to test some code which is AFAICS equivalent to the second example (Piece, Book, Article, BookReview) of the [https://docs.djangoproject.com/en/1.11/topics/db/models/#multiple-inheritance Multiple inheritance] section of the Models topic guide.

To reproduce my problem, please download the following files from [https://github.com/lino-framework/book/tree/master/docs/tested/diamond this directory] of my repository:

- [https://github.com/lino-framework/book/blob/master/docs/tested/diamond/main/models.py main/models.py]
- `main/__init__.py`
- `manage.py`
- `settings.py`

and then run:

{{{
$ python manage.py check
}}}

The output is:

{{{
SystemCheckError: System check identified some issues:

ERRORS:
main.PizzeriaBar: (models.E005) The field 'restaurant_ptr' from parent model 'main.bar' clashes with the field 'restaurant_ptr' from parent model 'main.pizzeria'.
}}}

The failure works in Django versions 1.11.2, 1.10.7, 1.9.13 (and maybe earlier as well).

I could not find any relevant difference between my code and the example in the documentation.

Any hints?

"	Bug	closed	Documentation	1.11	Normal	fixed			Accepted	1	0	0	0	0	0
