04 2017 档案
摘要:# Model 配置, Copy过去 class UserProfileManager(BaseUserManager): """创建普通用户 创建超级用户""" def create_user(self, email, name, password=None): """ Creates and saves a User with the giv...
阅读全文
摘要:#Q搜索 con = Q() for k,v in post_data_dict.items(): q = Q() q.connector = 'OR' for item in v: q.children.append((k,item)) con.add(q, 'AND') print(con)
阅读全文

浙公网安备 33010602011771号