model的查询操作
xx.objects.model.filter(pk__contains="")
xx.objects.model.filter(pk__in="")
xx.objects.model.filter(pk__startwith="")
# 获取表中字段名的对象
field_obj = xxx.objects.model._meta.get_field("字段名")
# 获取外键关联的所有对象
fielid_obj.rel.to.objects.all()
xx.objects.model.filter(pk__contains="")
xx.objects.model.filter(pk__in="")
xx.objects.model.filter(pk__startwith="")
# 获取表中字段名的对象
field_obj = xxx.objects.model._meta.get_field("字段名")
# 获取外键关联的所有对象
fielid_obj.rel.to.objects.all()