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
2016-10-09 18:34:38
Comments
Leave a Comment

Please login to continue.