  import types
  
  from django.apps import apps
  
  from . import Error, register
  
  
  @register('models')
  def check_all_models(app_configs=None, **kwargs):
      errors = [model.check(**kwargs)
 
</s> remove @register('models')
 </s> add @register(Tags.models) </s> remove from .. import Warning, register
 </s> add from .. import Warning, register, Tags </s> remove @register('compatibility')
 </s> add @register(Tags.compatibility) </s> remove from .registry import register, run_checks, tag_exists
 </s> add from .registry import register, run_checks, tag_exists, Tags </s> remove @register('models', 'signals')
 </s> add @register(Tags.models, Tags.signals)
from . import Error, Tags, register
  import types
  
  from django.apps import apps
  
from . import Error, Tags, register
  
  
  @register('models')
  def check_all_models(app_configs=None, **kwargs):
      errors = [model.check(**kwargs)
keep keep keep keep replace keep keep keep keep keep
 Fixed #22195 -- Used constants to define built-in tags for check framework.

Thanks Elvard for the patch. 
django/core/checks/model_checks.py