Пример #1
0
def lazy_signup(sender, **kwargs):
	request=kwargs['request']
	user=kwargs['user']
	Thought.reparent_all_my_session_objects(request.session, user)
Пример #2
0
def lazy_login(sender, **kwargs):
	request=kwargs['request']
	user=kwargs['user']
	print request
	if request.user.is_active:
		Thought.reparent_all_my_session_objects(request.session, user)