'Login as a staff user'

def _login_as_staff_user(self, logout_first=True):

    if logout_first:
        self.client.logout()
    self.client.login(username=self.user.username, password=self.user_password)
