django的get_or_create

转:http://www.nanerbang.com/article/51/

get_or_create会根据条件从数据库里面查找符合条件的记录,如果没有符合条件的记录,则新创建一条记录

原文地址:https://www.cnblogs.com/yingqml/p/6559624.html