Re: proposal: get_or_none QuerySet method

2006-12-24 Thread Gary Wilson
Jacob Kaplan-Moss wrote: On 12/24/06 11:15 PM, Gary Wilson wrote: > Well, the two tickets are different functionality. I could create a > single patch for both, the only thing was that in the patch for #3180 I > added an "Updating objects" to the db api documentation, but then > realized that i

Re: proposal: get_or_none QuerySet method

2006-12-24 Thread Jacob Kaplan-Moss
On 12/24/06 11:15 PM, Gary Wilson wrote: Well, the two tickets are different functionality. I could create a single patch for both, the only thing was that in the patch for #3180 I added an "Updating objects" to the db api documentation, but then realized that it should probably be integrated i

Re: why error: (10054, 'Connection reset by peer') when add user?

2006-12-24 Thread limodou
On 12/23/06, erob <[EMAIL PROTECTED]> wrote: Hi Yichao, Its a strange bug that happens sometimes. Check that your web server is able to access (static) media files (css, if any) that would cause such things. Updating python and django may not hurt neither.. HTH, -- Etienne I always has th

Re: why error: (10054, 'Connection reset by peer') when add user?

2006-12-24 Thread yichao.zhang
Hi Andy the steps to reproduce it against sqlite3 1 press add user button 2 press "back" button in browser 3 press "forward" button in browser repeat 1,2 and 3 sometimes, the error occurs in my windows XP box. the mysql server: mysql-4.1.22-win32 the mysql client: MySQL-python.exe-1.2.1_p2.win32

Re: proposal: get_or_none QuerySet method

2006-12-24 Thread Gary Wilson
Jacob Kaplan-Moss wrote: Hm - I get a whole bunch of failures when I apply the patch. Looking closer, you say it depends on an ``update()`` patch in #3181, but I don't see any such patch attached to #3181. Sorry about that, it should be #3180. Can you update #3182 to include this other patc

Re: proposal: get_or_none QuerySet method

2006-12-24 Thread Jacob Kaplan-Moss
On 12/24/06 4:50 PM, Gary Wilson wrote: I have created a ticket for this too and have attached some code: http://code.djangoproject.com/ticket/3182 Documentation and tests attached too now. Hm - I get a whole bunch of failures when I apply the patch. Looking closer, you say it depends on

ContentType matching query does not exist

2006-12-24 Thread ad-hoc
I've been playing with django. I'm trying to get the model with its name by: django.contrib.contenttypes.models.ContentType.objects.get(model=modelname) where modelname is a string, but i'm getting the exception/error as above. Using the admin interface i can see/add/update instances for the

Re: proposal: get_or_none QuerySet method

2006-12-24 Thread Gary Wilson
Gary Wilson wrote: I have created a ticket for this too and have attached some code: http://code.djangoproject.com/ticket/3182 Documentation and tests attached too now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: why error: (10054, 'Connection reset by peer') when add user?

2006-12-24 Thread Andy Dustman
On 12/22/06, yichao.zhang <[EMAIL PROTECTED]> wrote: my env: python 2.4.3, django-0.95-py2.4, WinXP sp2 I created a new project, enabled the admin feature. After logging into admin as superuser, I press the button "Add user", then the following error occurs. It's reproduciable against mysql an

Schema evo (actual movement!)

2006-12-24 Thread Jeremy Dunck
For whatever reason, there's been a lot of rustling about schema evo on the dju list. I thought I'd draw attention to this thread: http://groups-beta.google.com/group/django-users/browse_thread/thread/bd1417a08e37774a/e157ea7b4a37b556 On dec 16, Victor Ng reported good progress towards a workab