contenttypes.models.ContentType.app_label

app_label

The name of the application the model is part of. This is taken from the app_label attribute of the model, and includes only the last part of the application’s Python import path; “django.contrib.contenttypes”, for example, becomes an app_label of “contenttypes”.

doc_Django
2016-10-09 18:34:38
Comments
Leave a Comment

Please login to continue.