views:

52

answers:

2

How can I save a model, such that signals arent sent. (post_save and pre_save)

A: 

There is currently a ticket pending a Django design decision for this feature.

Included in the ticket is a diff for a patch with the proposed implementation.

Andre Miller
+2  A: 

It's a bit of a hack, but you can do something like this:

use a unique identifier with a filter and then use the update method of the queryset (which does not trigger the signals)

user_id = 142187
User.objects.filter(id=user_id).update(name='tom')
Jiaaro