On Aug 19, 2005, at 12:27 PM, Brantley wrote:
Below is a model I created to track departments. When I give it
"admin
= meta.Admin()" I am then allowed to change my "supervisor",
"manager",
and "parent" fields. But if I define my own, how do I reference them?
I tried something like:
("Management", {'fields': ('supervisor', 'managers')})
but it throws a key error, not knowing what 'supervisor' is.
You need to use the actual name of the field, which in your case is
"supervisor_id". I know, this is less than ideal; we're
brainstorming ideas about how to make this less stupid and will have
a fix before the 1.0 release.
Jacob