mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #16958 -- Correctly use the queryset method in the auth app's UserAdmin class. Thanks, mpaolini.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -2946,6 +2946,11 @@ class ReadonlyTest(TestCase):
|
||||
response = self.client.get('/test_admin/admin/admin_views/pizza/add/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_user_password_change_limited_queryset(self):
|
||||
su = User.objects.filter(is_superuser=True)[0]
|
||||
response = self.client.get('/test_admin/admin2/auth/user/%s/password/' % su.pk)
|
||||
self.assertEquals(response.status_code, 404)
|
||||
|
||||
|
||||
class RawIdFieldsTest(TestCase):
|
||||
urls = "regressiontests.admin_views.urls"
|
||||
|
||||
Reference in New Issue
Block a user