mirror of
https://github.com/django/django.git
synced 2025-10-29 02:52:24 +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:
parent
a6b6c6e171
commit
bc8875e37c
3 changed files with 17 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue