﻿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
33039	Django to have conditional column based on another column	Nathaniel Brown	nobody	"I am looking to do a pre-fetch on a data model that conditionally loads either of two columns based on what's in another column.

Simply put, if the title tag has <file> in it, then the model should load the file_value column. If it does not, then load the body column.

I'd like to use it with the get object or 404 if possible.

	poem = get_object_or_404(Poem, pk=poem_id)
"	New feature	closed	Database layer (models, ORM)	3.2	Normal	invalid	conditional, condition, alternate columns		Unreviewed	0	0	0	0	0	0
