Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » "Please correct the errors below." is displayed without actual errors [RSS Feed]

#1 Nov. 27, 2005 15:17:19

K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

"Please correct the errors below." is displayed without actual errors


Hi,

I have quite a big form, with all kind of fileds. All fields might be
blank, so i use everywhere blank=True and with integer- float- and
datefields also null=True.
When I am trying to save existed record, I get the message "Please
correct the errors below.", but no errors!

I am using svn version. Any idea's what can be wrong?

thanks
Ksenia.

Offline

#2 Nov. 27, 2005 16:12:37

Robert W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

"Please correct the errors below." is displayed without actual errors


Ksenia wrote:
> Hi,
>
> I have quite a big form, with all kind of fileds. All fields might be
> blank, so i use everywhere blank=True and with integer- float- and
> datefields also null=True.
> When I am trying to save existed record, I get the message "Please
> correct the errors below.", but no errors!
>
> I am using svn version. Any idea's what can be wrong?
>
> thanks
> Ksenia.
>
>

Hi,

Is this in the admin? If so it is probably a bug.
You may be able to diagnose it by making a template
for your specific app:
make a file called

admin/<app_name>/change_form.html ,

<app_name> replaced with your app name.

with the content:

{%extends "admin/change_form" %}
{%block form-top %} {{form.error_dict.items|pprint}} {%endblock%}

And this should show you all the errors. Overloading the template for
specific apps and models is a useful strategy.

If not in the admin, you need to make sure you are displaying
field.errors for every form field in your form.

I do have a plan to wrap the errors into a string like object that
records whether __str__ has been called. Then at the end of your
template, all the errors that have not been output yet can be shown in
one lump. This would make this kind of error a lot easier to diagnose.

Rob

Offline

#3 Nov. 27, 2005 23:39:13

s.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

"Please correct the errors below." is displayed without actual errors


Wouldn't "ediatble=False" on a required field give this error?

Offline

  • Root
  • » Django
  • » "Please correct the errors below." is displayed without actual errors [RSS Feed]

Board footer

Moderator control

Enjoy the 22nd of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support