Hi,
I took a look at PR 2192[1] earlier, and noted that checks.register keeps
being used as a function, called from AppConfig.ready(), and not as a
decorator; but it is defined as a decorator, so it looks a little funny:
checks.register('models')(check_generic_foreign_keys)
(from the contenttypes AppConfig, for example).
Registering checks only in ready(), rather than at import time, is now the way
to do things, so register() should typically not be used as a decorator; I
think we should change its definition accordingly, to
def register(self, check, *tags)
Thoughts?
[1]
https://github.com/django/django/pull/2192