Browse files

Fix post_save_user signal handler for Django 1.5

  • Loading branch information...
1 parent da2e4ca commit 9adee68e6633e40e2fc3edbac54a6bef982a12b1 @bikeshedder bikeshedder committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 cms/
@@ -133,7 +133,7 @@ def post_save_user(instance, raw, created, **kwargs):
from cms.utils.permissions import get_current_user
# read current user from thread locals
creator = get_current_user()
- if not creator or not created or not hasattr(creator, 'pk'):
+ if not creator or not created or creator.is_anonymous():
from django.db import connection

0 comments on commit 9adee68

Please sign in to comment.