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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.