04 2017 档案

摘要:# Model 配置, Copy过去 class UserProfileManager(BaseUserManager): """创建普通用户 创建超级用户""" def create_user(self, email, name, password=None): """ Creates and saves a User with the giv... 阅读全文
posted @ 2017-04-09 10:52 200ML 阅读(284) 评论(0) 推荐(0)
摘要:#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) 阅读全文
posted @ 2017-04-03 10:03 200ML 阅读(113) 评论(0) 推荐(0)