如何添加某些模型的范围基础 ORM?
from .models import UsersLog
if request.method == 'POST':
login = request.POST.get('flogin')
response_data = {}
response_data['result'] = 'Failed'
lengthBase = UsersLog.objects.get()
for i in lengthBase: // I got 3 users so I want lengthBase equal 3
波斯汪
相关分类