def post_save_user_group(instance, raw, created, **kwargs):
 from cms.utils.permissions import get_current_user
 creator = get_current_user()
 if ((not creator) or (not created) or creator.is_anonymous()):
  return
 page_user = PageUserGroup(group_ptr_id=instance.pk, created_by=creator)
 page_user.__dict__.update(instance.__dict__)
 page_user.save()

def post_save_user_group ( instance , raw , created , ** kwargs ) : from cms . utils . permissions import get_current_user creator = get_current_user ( ) if ( ( not creator ) or ( not created ) or creator . is_anonymous ( ) ) : return page_user = PageUserGroup ( group_ptr_id = instance . pk , created_by = creator ) page_user . __dict__ . update ( instance . __dict__ ) page_user . save ( )
the same like post_save_user .