Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
channels
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gaoming
channels
Commits
8ac75522
Commit
8ac75522
authored
Sep 10, 2019
by
gaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加后台搜索
parent
2f9c4e07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
admin.py
like/admin.py
+1
-0
models.py
like/models.py
+0
-1
No files found.
like/admin.py
View file @
8ac75522
...
...
@@ -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"
)
...
...
like/models.py
View file @
8ac75522
...
...
@@ -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
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment