Fixed #23750 -- django.core.checks.register can now be used as function

See https://code.djangoproject.com/ticket/23750