1👍
✅
get_for_model can take an instance or a class, so you can also do the following:
ContentType.objects.get_for_model(Blog)
Source:stackexchange.com
1👍
get_for_model can take an instance or a class, so you can also do the following:
ContentType.objects.get_for_model(Blog)