I also propose these two little helpers, one is ``refresh()`` and other is 
``update()``
https://gist.github.com/3859962

``update()`` updates instance without calling ``save()`` and calling 
signals and returns updated instance (sometimes you want to update instance 
without involving save signals)

This helpers are particularly useful in writing tests, may be makes sense 
including them not to ``djanog.db.models`` but to ``django.test`` or 
``django.test.tools``.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/FxGwLxwM8SAJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to