Re: Document direct API usage of FileField and ImageField

2010-09-17 Thread Owen Nelson
Actually, I'm not sure what way to go with this. All the info is there, it's just spread around in a number of topics: http://docs.djangoproject.com/en/dev/ref/files/file/ http://docs.djangoproject.com/en/dev/topics/http/file-uploads/

Re: Document direct API usage of FileField and ImageField

2010-09-17 Thread Owen Nelson
I'd love to pitch in on updating the docs for file handling :) Even though this kind of talk is better suited over on django-users, here's one way to skin a cat. I had a view that displayed a model form (one of the fields was a FileField). I needed to alter the resolution of the uploaded image t

Proposal: Add signals test_setup and test_teardown to Django test suite runner

2010-09-17 Thread Jim D.
I recently asked a question on Django Users related to executing certain code during the global setup and teardown routines that run in Django's test runner. In my particular use case, I was looking for a hook where I could disable some third party API code when tests execute, in much the same way

Re: making queryset.delete issue only a single SQL query

2010-09-17 Thread Tobias McNulty
On Fri, Sep 17, 2010 at 8:27 AM, SmileyChris wrote: > > On Sep 11, 1:12 pm, Tobias McNulty wrote: > > I may be missing something, but queryset.delete() seems oddly implemented > in > > Django. It does a select to get all the IDs to be deleted, and then > deletes > > them, in blocks of 100 I bel

Re: making queryset.delete issue only a single SQL query

2010-09-17 Thread SmileyChris
On Sep 11, 1:12 pm, Tobias McNulty wrote: > Hi All, > > I may be missing something, but queryset.delete() seems oddly implemented in > Django.  It does a select to get all the IDs to be deleted, and then deletes > them, in blocks of 100 I believe, by ID. It's because .delete() is emulating the