Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
alpha
physical
Commits
8fcf5a5c
Commit
8fcf5a5c
authored
Nov 27, 2018
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
9454e011
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
topic.py
trans2es/models/topic.py
+2
-2
user.py
trans2es/models/user.py
+1
-1
No files found.
trans2es/models/topic.py
View file @
8fcf5a5c
...
...
@@ -36,7 +36,7 @@ class Topic(models.Model):
def
get_pick_id_info
(
self
):
try
:
pick_id_list
=
list
()
query_list
=
PickTopic
.
objects
.
get
(
topic_id
=
self
.
id
)
query_list
=
PickTopic
.
objects
.
filter
(
topic_id
=
self
.
id
)
for
item
in
query_list
:
pick_id_list
.
append
(
item
.
pick_id
)
...
...
@@ -49,7 +49,7 @@ class Topic(models.Model):
try
:
topic_tag_id_list
=
list
()
query_results
=
TopicTag
.
objects
.
get
(
topic_id
=
self
.
id
)
query_results
=
TopicTag
.
objects
.
filter
(
topic_id
=
self
.
id
)
for
item
in
query_results
:
topic_tag_id_list
.
append
(
item
.
tag_id
)
...
...
trans2es/models/user.py
View file @
8fcf5a5c
...
...
@@ -87,7 +87,7 @@ class User(models.Model):
try
:
user_tag_id_list
=
list
()
query_results
=
AccountUserTag
.
objects
.
get
(
user_id
=
self
.
user_id
)
query_results
=
AccountUserTag
.
objects
.
filter
(
user_id
=
self
.
user_id
)
for
item
in
query_results
:
user_tag_id_list
.
append
(
item
.
tag_id
)
...
...
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