Skip to content

Instantly share code, notes, and snippets.

@loic
Created February 12, 2015 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loic/1937e127d217e10dd50d to your computer and use it in GitHub Desktop.
Save loic/1937e127d217e10dd50d to your computer and use it in GitHub Desktop.
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