Benedict Verheyen schreef:
> Hi,
> 
> i think i might have encountered a possible bug but i'm not sure though.
> Editing an object and leaving a mandatory field empty results in the
> form "forgetting" the foreign keys. It doesn't actually forget but it ommits 
> the
> "_id" part and thus the values are not displayed on the form.
> The first time you edit, it works.
> 
> I encountered it using this scenario:
> 1. Edit object
> 2. Delete/blank a mandatory field
> 3. Save the object
> 4. You get an error complaining that the field is mandatory
>    Note that the foreign key fields are now blank
> 
> For instance, in my case i have a form with 2 foreign keys. The first
> time i edit,
> they are called room_id and doctor_id in manipulator.form.__dict__
> When i delete the mandatory field and save, manipulator.form.__dict__
> contains room and doctor instead of room_id and doctor_id and thus they
> don't set the foreignkeys anymore on the field and the foreign key
> fields are left
> blank.
> 
> Is anyone else able to reproduce it?
> How can we work around it?
> 
> I think i'm on version 0.96 (rev 4067)
> 
> Thanks,
> Benedict


Has anyone else noticed this?
It's really annoying as the user looses all selections from a dropdown box.

Benedict


--~--~---------~--~----~------------~-------~--~----~
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