Re: narrow writes (as 3rd-party library)

2014-07-16 Thread Loic Bistuer
On Jul 17, 2014, at 5:16 AM, Jeremy Dunck wrote: > 1) returned whether the row was created or updated, e.g. if .save_base > returned the `updated` value which it uses to send the .post_save signal. > 2) raise something finer-grained than DatabaseError when force_update is

narrow writes (as 3rd-party library)

2014-07-16 Thread Jeremy Dunck
I'm attempting to implement narrow writes (that is, writing only fields which have changed). I would be able to do this as a 3rd-party Mixin library if some changes were made to Model.save_base. 1) returned whether the row was created or updated, e.g. if .save_base returned the `updated`

Re: Documentation enhancement for class based GenericView

2014-07-16 Thread Florian Apolloner
Hi Wayne, On Wednesday, July 16, 2014 3:48:34 PM UTC+2, Wayne Ye wrote: > > >- When GET a resource, I want to do a counting job to record total hit >on this specific resource > > Override dispatch or get, count and delegate to the parent. > >- When a posted form is invalid, I

Documentation enhancement for class based GenericView

2014-07-16 Thread Wayne Ye
This is a humble request, for beginners who are relatively new to Django (or GenericView), after reading the official Generic Editing Views , it doesn't mention a word about how to override the get/post/update method,

Documentation enhancement for class based GenericView

2014-07-16 Thread Wayne Ye
This is a humble request, for beginners who are relatively new to Django (or GenericView), after reading the official Generic Editing Views , it doesn't mention a word about how to override the get/post/update method,