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 etc), from a list which is found under a related model.

The relationship is working fine, apart from one thing.  I've set the
ForeignKey field to blank=True, as not all employees have an emergency
contact.  But when the field is left blank, the employee does not show
up in the admin change list.  So all existing employees, who were
entered before the new field existed, no longer show up.  Any new
employees entered with a value in the ForeignKey field are fine, but
those without are also invisible.

When I remove this particular field from the Class Admin fields tuple
list, everything goes back to normal.

Does anyone know if there is anything I can do to fix this? I've never
had his problem before, as all ForeignKey fields I've used previously
have been set as mandatory, but this doesn't seem appropriate in this
case.

Many thanks,

Bianca




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to