Since users are a global concept they should apply across sites. They
should also be updated even in invisible objects (unapproved comments,
draft posts, future posts, etc).
diff -r 640229937ff2 -r 3e328d99dbf6 apps/accounts/forms.py
--- a/apps/accounts/forms.py Wed Dec 02 20:25:55 2009 -0800
+++ b/apps/accounts/forms.py Wed Dec 02 20:44:00 2009 -0800
@@ -149,9 +149,9 @@
newuser = authenticate(email=self.cleaned_data['email'], password=self.cleaned_data['password'])
olduser = self.request.user
from blog.models import Post
- Post.objects.filter(author=olduser).update(author=newuser)
+ Post.plain_manager.filter(author=olduser).update(author=newuser)
from discussion.models import CommentNode
- CommentNode.objects.filter(user=olduser).update(user=newuser)
+ CommentNode.all_objects.filter(user=olduser).update(user=newuser)
from watchlist.models import Subscription
Subscription.objects.filter(user=olduser).update(user=newuser)
from openidconsumer.models import UserAssociation