Created
January 15, 2009 06:39
-
-
Save johnboxall/47295 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update_owner(obj, user): | |
"Change `owner` of all model instances related to `obj` to `user`." | |
return update_related_field(obj, user, 'owner') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment