摘要: class UserIDFilter(admin.SimpleListFilter): # 自定义用户查询过滤器 title = _('关联用户') parameter_name = 'user_id' def lookups(self, request, model_admin): params = UserProfile.objects.a... 阅读全文
posted @ 2019-02-28 16:28 Leslie-x 阅读(907) 评论(0) 推荐(0) 编辑