﻿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
25478	1.8 migrating doc code sample needs parens	Ned Batchelder	nobody	"I think this sample from https://docs.djangoproject.com/en/1.8/ref/models/meta/#migrating-from-the-old-api needs parens to be correct. The docs have:
{{{
[
    (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)
]
}}}
but the condition seems wrong. Shouldn't it be:
{{{
[
    (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)
    )
]
}}}"	Bug	closed	Documentation	1.8	Normal	worksforme		pirosb3@…	Accepted	0	0	0	0	0	0
