﻿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
18297	Reverse generic relation to a model inheriting from the model defining a generic relation confuses flush	pronik	nobody	"Please look into attached file, I've created a minimal test project for this bug. You'll have to include your database credentials in `settings.py` before you try it.

Let's say we have model with a generic relation (e.g. `django.contrib.comments.models.Comment`) and a model deriving from it (e.g. `OtherComment`). Now, if a reverse generic relation to `OtherComment` is defined, it would correctly work and point to a list of `OtherComment` instances. However, `flush` would now try to reset the sequence on `id` field of `OtherComment` which does not exist (`OtherComment` only has `comment_ptr_id`) while resetting `id` on `Comment` would be correct."	Bug	closed	Core (Management commands)	1.3	Normal	duplicate			Accepted	0	0	0	0	0	0
