'User can edit page settings if he has change permissions
on the Page model and and he has global change permissions.'

def test_user_can_edit_page_settings(self):

    page = self.get_permissions_test_page()
    endpoint = self.get_admin_url(Page, 'change', page.pk)
    redirect_to = self.get_admin_url(Page, 'changelist')
    staff_user = self.get_staff_user_with_no_permissions()
    data = self._get_page_data(slug='permissions-2')
    self.add_permission(staff_user, 'change_page')
    self.add_global_permission(staff_user, can_change=True)
    with self.login_user_context(staff_user):
        response = self.client.post(endpoint, data)
        self.assertRedirects(response, redirect_to)
        self.assertTrue(self._translation_exists(slug='permissions-2'))
