Re: SimpleLazyObject for request.user not correctly evaluated inside RequestContext

2013-09-12 Thread giovanni allegri
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

Re: SimpleLazyObject for request.user not correctly evaluated inside RequestContext

2013-09-06 Thread Germán
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

Re: 'SimpleLazyObject'

2013-07-13 Thread Kakar Arunachal Service
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

Re: 'SimpleLazyObject'

2013-07-13 Thread Victor Rocha
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

Re: 'SimpleLazyObject'

2013-07-13 Thread Kakar Arunachal Service
> 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

RE: 'SimpleLazyObject'

2013-07-12 Thread Babatunde Akinyanmi
-- 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

Re: 'SimpleLazyObject'

2013-07-12 Thread Kakar Arunachal Service
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',

Re: 'SimpleLazyObject'

2013-07-12 Thread Sithembewena Lloyd Dube
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

Re: simplelazyobject breaks code

2009-10-19 Thread Eric Holscher
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