Re: Best way to update only certain fields on a model instance?

2007-11-26 Thread Johann C. Rocholl
On Nov 23, 9:28 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > > I have come up with this kludge: > > http://www.djangosnippets.org/snippets/479/ > > Should I turn this into a patch and submit it? > > No, this will be covered by 4102. > > > What's the status of ticket 4102? > > (Allow UPDATE of onl

Best way to update only certain fields on a model instance?

2007-11-22 Thread Johann C. Rocholl
Hi, I have some problems with model.save(): 1. It does a SELECT first to see if the instance is already in the database. 2. It has additional database performance overhead because it writes all fields, not just the ones that have been changed. 3. It overwrites other model fields with data that

Re: Visual recognition of Django website

2007-09-18 Thread Johann C. Rocholl
On Sep 17, 10:17 am, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > I personally would also like a favicon for the django sites. I took the > liberty of creating one using django's colors and fonts (stole the d from > the logo). > > http://www.flickr.com/photos/[EMAIL PROTECTED]/1397125183/ Here's

Proposal: more granular select_related

2007-07-03 Thread Johann C. Rocholl
Often I want to preload just some foreign keys, not all of them as select_related() does. Other people seem to need this feature too: http://groups.google.com/group/django-developers/browse_thread/thread/e5e0de59e8304bcd/bb93410289bc19b7 http://code.djangoproject.com/ticket/3275 My solution: I ha