Hi German,
thanks for the reply. I apologize for the delay, but I didn't receive the
notification :(
I've definetly improved the form workflow defining a validator inside my
form. My validator check avoids the IntegrityError from Postgres.
Anyway, in case such an error happens, how should one
What DB engine are you using? If it is PostgreSQL, you need to roll back
the transaction after a database error exception (e.g. IntegrityError).
By the way, I think what you are doing is wrong. If the form data is
invalid, then you need to call . form_invalid
On Friday, September 6, 2013
Yes, you are right.
On Sat, Jul 13, 2013 at 7:07 PM, Victor Rocha wrote:
> This is a wild guess but I do not see the login_required decorator on your
> view. I think you are getting this error because you are trying to save an
> Bookmark object passing an anonymous user as
This is a wild guess but I do not see the login_required decorator on your
view. I think you are getting this error because you are trying to save an
Bookmark object passing an anonymous user as one of your arguments. An
anonymous user is a SimpleLazyObject; it is a user but there is no
> From: Kakar Arunachal Service
> Sent: 7/12/2013 8:46 PM
> To: django-users@googlegroups.com
> Subject: Re: 'SimpleLazyObject'
>
> Here's the traceback info:
>
> Environment:
>
>
> Request Method: POST
> Request URL: http://localhost:8000/save/
>
> Dj
--
From: Kakar Arunachal Service
Sent: 7/12/2013 8:46 PM
To: django-users@googlegroups.com
Subject: Re: 'SimpleLazyObject'
Here's the traceback info:
Environment:
Request Method: POST
Request URL: http://localhost:8000/save/
Django Version: 1.5.1
Python Version: 2.7.5
Here's the traceback info:
Environment:
Request Method: POST
Request URL: http://localhost:8000/save/
Django Version: 1.5.1
Python Version: 2.7.5
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
What does the trace information say in your browser (or shell)? The trace
should be giving more information - such as, in which line number of which
file is the error showing up?.
On Fri, Jul 12, 2013 at 8:45 PM, Kakar Arunachal Service <
kakararunachalserv...@gmail.com> wrote:
> I've got a
Went ahead and filed a ticket for this. If you would chime in with
your example it probably wouldn't hurt, but I will link to this thread
as well.
http://code.djangoproject.com/ticket/12060
Cheers,
Eric
--~--~-~--~~~---~--~~
You received this message because you
9 matches
Mail list logo