@receiver(post_save, sender=settings.AUTH_USER_MODEL)
def user_post_save(sender, **kwargs):
 if kwargs.get(u'raw', False):
  return False
 (user, created) = (kwargs[u'instance'], kwargs[u'created'])
 disabled = getattr(user, u'_disable_account_creation', (not settings.ACCOUNT_CREATE_ON_SAVE))
 if (created and (not disabled)):
  Account.create(user=user)

@ receiver ( post_save , sender = settings . AUTH_USER_MODEL ) def user_post_save ( sender , ** kwargs ) : if kwargs . get ( u'raw' , False ) : return False ( user , created ) = ( kwargs [ u'instance' ] , kwargs [ u'created' ] ) disabled = getattr ( user , u'_disable_account_creation' , ( not settings . ACCOUNT_CREATE_ON_SAVE ) ) if ( created and ( not disabled ) ) : Account . create ( user = user )
after user .