Re: Foreign keys in views

2006-05-27 Thread Christian Schneider
Jorge,thanks for your answer. That's what I'm doing now. Unfortunately, I don't have time to dive deeper into CustomManipulators but maybe for the next project.Best regardschris On 5/26/06, Jorge Gajon <[EMAIL PROTECTED]> wrote: Hi,I also found that behavior and what I did was to copynew_data['stat

Re: Foreign keys in views

2006-05-26 Thread Jorge Gajon
Hi, I also found that behavior and what I did was to copy new_data['station'] to new_data['station_id'] when there were errors from "get_validation_errors()". Like this: def change_recording(request, recording_id): snip. if request.POST: new_data = request.POST.copy()

Foreign keys in views

2006-05-25 Thread Christian Schneider
Hi all, I've written (well copied) the following view. In my model I have a defined an attribute "station = models.ForeignKey(Station)". Now, if I call the change view, the station is selected. However, if I submit the change view with some errors, the station is de-selected in the new view. I've a