Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
谢林臻
sun
Commits
689498c1
Commit
689498c1
authored
Aug 07, 2019
by
haowang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code
parent
264b8bd2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
reply.py
api/reply.py
+1
-1
urls.py
api/urls.py
+3
-3
No files found.
api/reply.py
View file @
689498c1
...
...
@@ -174,7 +174,7 @@ class ReplyManageCreateView(APIView):
}
class
ReplyBatchUpdate
(
APIView
):
class
Reply
Manage
BatchUpdate
(
APIView
):
def
post
(
self
,
request
):
ids
=
json
.
loads
(
request
.
POST
.
get
(
'ids'
,
'[]'
))
...
...
api/urls.py
View file @
689498c1
...
...
@@ -221,9 +221,9 @@ urlpatterns = [
url
(
r'^reply/vote$'
,
ReplyVote
.
as_view
()),
# 评论管理
url
(
r'^reply/manage/list$'
,
ReplyListView
.
as_view
()),
url
(
r'^reply/manage/create$'
,
ReplyCreateView
.
as_view
()),
url
(
r'^reply/manage/batch/update$'
,
ReplyBatchUpdate
.
as_view
()),
url
(
r'^reply/manage/list$'
,
Reply
Manage
ListView
.
as_view
()),
url
(
r'^reply/manage/create$'
,
Reply
Manage
CreateView
.
as_view
()),
url
(
r'^reply/manage/batch/update$'
,
Reply
Manage
BatchUpdate
.
as_view
()),
]
search_urlpatterns
=
[
...
...
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