Created
February 12, 2015 17:48
-
-
Save loic/1937e127d217e10dd50d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/tests/auth_tests/urls_custom_user_admin.py b/tests/auth_tests/urls_custom_user_admin.py | |
index 552ccf0..f719837 100644 | |
--- a/tests/auth_tests/urls_custom_user_admin.py | |
+++ b/tests/auth_tests/urls_custom_user_admin.py | |
@@ -6,7 +6,12 @@ from django.contrib.auth.urls import urlpatterns | |
site = admin.AdminSite(name='custom_user_admin') | |
-site.register(get_user_model(), UserAdmin) | |
+ | |
+class CustomUseradmin(UserAdmin): | |
+ def log_change(self, request, object, message): | |
+ pass | |
+ | |
+site.register(get_user_model(), CustomUseradmin) | |
urlpatterns += [ | |
url(r'^admin/', include(site.urls)), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment