﻿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
26069	Docs for MyModel._meta.get_fields_with_model() missing info about 'is_relation'	Sven R. Kunze	nobody	"https://docs.djangoproject.com/en/1.9/ref/models/meta/#migrating-old-meta-api

Docs use source code a explanation:

{{{
MyModel._meta.get_fields_with_model():

[
    (f, f.model if f.model != MyModel else None)
    for f in MyModel._meta.get_fields()
    if not f.is_relation
        or f.one_to_one
        or (f.many_to_one and f.related_model)
]
}}}

1) Why does {{{ get_fields_with_model }}} return fields with {{{not is_relation}}}?

2) When does a {{{many_to_one}}} field not have a {{{related_model}}}?

3) Is it possible to have a {{{one_to_one}}} field with no {{{related_model}}}?"	Cleanup/optimization	closed	Documentation	1.8	Normal	worksforme		tzanke@…	Accepted	0	0	0	0	0	0
