Commit 8ac75522 authored by gaoming's avatar gaoming

增加后台搜索

parent 2f9c4e07
......@@ -5,6 +5,7 @@ from like.models import PromotionInfo,PromotionChannel
class PromotionInfoAdmin(admin.ModelAdmin):
search_fields=['name',"code"]
list_display=("name","code","sub_code","platform","app","appendtime")
list_filter=("code","app","platform")
......
......@@ -135,7 +135,6 @@ class PromotionChannel(models.Model):
if request:
params.update({"request":json.dumps(request.GET.dict())})
#appid加前缀和子渠道
appid=params.get("appid")
appid = '{0}{1}'.format(appid,"_{0}".format(sub_name) if sub_name else "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment