dict()
to_dict()
from django.forms.models import model_to_dict
u_dict = model_to_dict(u)
转成字典
原文:https://www.cnblogs.com/pythonClub/p/9873520.html