contenttypes.models.ContentTypeManager.get_for_models()

get_for_models(*models, for_concrete_models=True)

Takes a variadic number of model classes, and returns a dictionary mapping the model classes to the ContentType instances representing them. for_concrete_models=False allows fetching the ContentType of proxy models.

doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.