On 8/8/06, william <[EMAIL PROTECTED]> wrote: > > I have a form (for edit) where some extra required info are coming from > the URL as parameters. Something like: > "/photo/mylitlehouse1543/edit/?category_id=1" > > Whole process works fine; but when users make wrong input, the new URL > showing the form with errors info (side to the wrong fileds) has lost > his parameter. We have now: > "/photo/mylitlehouse1543/edit/" > > What's wrong ? > Problem with render_to_response ?
That's odd. Are you doing a redirect somewhere? a > > > Thanks > > William > > > > > Annexe: > > > The viewer is something like: > " > def photo_form(request,slug): > try: > record = Photo.objects.get(slug=slug) > manipulator = Photo.ChangeManipulator(record.id) > except Decision.DoesNotExist: > manipulator = Photo.AddManipulator() > if request.POST: > new_data = request.POST.copy() > errors = manipulator.get_validation_errors(new_data) > if not errors: > manipulator.do_html2python(new_data) > new_place=manipulator.save(new_data) > return HttpResponseRedirect(new_place.get_absolute_url()) > else: > errors = {} > new_data = manipulator.flatten_data() > new_data.update(dict(request.GET.items())) > form = forms.FormWrapper(manipulator, new_data, errors) > return render_to_response('applicationmgt/photo_form.html', > {'form': form}) > " > > > > > -- Alan Green [EMAIL PROTECTED] - http://bright-green.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---