def dispatch(self, request, *args, **kwargs):
    q = request.GET.get('q', '')
    if request.GET.get('full'):
      self.full = True
    elif q.isdigit():
      self.user = get_object_or_404(User, pk=q)
      self.full = False
    elif request.user.is_authenticated:
      self.user = request.user
      self.full = False
    else:
      self.full = True
    return super().dispatch(request, *args, **kwargs)