Can you add a comment saying something like, "Adopted from Django core. Would have imported it but one of the django-admin2 mandates is that we don't share code with django.contrib.admin"?