fixes int() argument must be a string or a number, not 'SimpleLazyObject' on request.user.