contenttypes.models.ContentType.get_object_for_this_type()

ContentType.get_object_for_this_type(**kwargs)

Takes a set of valid lookup arguments for the model the ContentType represents, and does a get() lookup on that model, returning the corresponding object.

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

Please login to continue.