Lines Matching refs:user
21 user = User.objects.get(username=username)
24 user = User(username=username,
26 user.is_staff = True
27 user.save() # need to save before adding groups
28 user.groups.add(Group.objects.get(
32 return user
37 user, created = models.User.objects.get_or_create(login=username)
39 user.save()
59 user = request.META.get('REMOTE_USER')
60 if user is None:
63 user = request.META.get('HTTP_AUTHORIZATION')
64 if user is None:
66 user = constants.MOBLAB_USER if utils.is_moblab() else DEBUG_USER
67 thread_local.set_user(user)