forked from django/django
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.5.x] Fixed #20078: don't allow filtering on password in the user a…
…dmin. Backport of 9e462f8 from master.
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Test URLs for auth admins. | ||
""" | ||
|
||
from django.conf.urls import patterns, include | ||
from django.contrib import admin | ||
from django.contrib.auth.admin import UserAdmin, GroupAdmin | ||
from django.contrib.auth.models import User, Group | ||
from django.contrib.auth.urls import urlpatterns | ||
|
||
# Create a silo'd admin site for just the user/group admins. | ||
site = admin.AdminSite(name='auth_test_admin') | ||
site.register(User, UserAdmin) | ||
site.register(Group, GroupAdmin) | ||
|
||
urlpatterns = urlpatterns + patterns('', | ||
(r'^admin/', include(site.urls)), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters