When ForeignKey fields are left blank, objects don't appear in admin change list. Why?

2008-02-24 Thread biancaneve
Hi, I've just added a few new fields to my fairly simple employee database to allow entry of an emergency contact person for each employee. One of these fields is a ForeignKey, designed to allow users to select the relationship between the employee and their contact (eg. parent, spouse, friend e

Re: Object variable name in admin templates?

2007-07-31 Thread biancaneve
Yes! It worked! Thanks so much! James Bennett wrote: > On 7/31/07, biancaneve <[EMAIL PROTECTED]> wrote: > > I can do it if I write a whole new view and define my own variables, > > but then I lose a lot of the Admin functionality. I'd prefer to just > > ch

Object variable name in admin templates?

2007-07-31 Thread biancaneve
Can anyone tell me what variable the admin template (change_form.html) uses to describe the object being edited? I'm trying to alter the change form for a particular model (Employee) to display a field from that model (Surname) as a title, rather than "Change Employee". I can do it if I write a