get_for_model in Django ContentType

前端 未结 0 1672
孤城傲影
孤城傲影 2020-12-09 23:32

what is the benefit of get_for_model function when i can get it via type ? example: Book is model ContentType.objects.get_for_model(Book)---->ContentType:book

相关标签:
回答
  • 消灭零回复
提交回复
热议问题