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
钟尚武
physical
Commits
c398bcad
Commit
c398bcad
authored
Nov 27, 2018
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
09ad4446
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
tag.py
trans2es/models/tag.py
+3
-3
topic.py
trans2es/models/topic.py
+5
-5
No files found.
trans2es/models/tag.py
View file @
c398bcad
...
...
@@ -42,8 +42,8 @@ class Tag(models.Model):
id
=
models
.
IntegerField
(
primary_key
=
True
,
verbose_name
=
u"主键ID"
)
is_deleted
=
models
.
BooleanField
(
verbose_name
=
u"是否删除"
)
name
=
models
.
CharField
(
verbose_name
=
u"标签名称"
)
description
=
models
.
Char
Field
(
verbose_name
=
u"标签描述"
)
icon_url
=
models
.
CharField
(
verbose_name
=
u"icon_url"
)
name
=
models
.
CharField
(
verbose_name
=
u"标签名称"
,
max_length
=
128
)
description
=
models
.
Text
Field
(
verbose_name
=
u"标签描述"
)
icon_url
=
models
.
CharField
(
verbose_name
=
u"icon_url"
,
max_length
=
120
)
create_time
=
models
.
DateTimeField
(
verbose_name
=
u'创建时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
update_time
=
models
.
DateTimeField
(
verbose_name
=
u'更新时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
trans2es/models/topic.py
View file @
c398bcad
...
...
@@ -17,18 +17,18 @@ class Topic(models.Model):
db_table
=
'topic'
id
=
models
.
IntegerField
(
verbose_name
=
'日记ID'
)
name
=
models
.
CharField
(
verbose_name
=
'日记名称'
)
name
=
models
.
CharField
(
verbose_name
=
'日记名称'
,
max_length
=
100
)
group_id
=
models
.
IntegerField
(
verbose_name
=
'用户所在组ID'
)
user_id
=
models
.
IntegerField
(
verbose_name
=
'用户ID'
)
description
=
models
.
CharField
(
verbose_name
=
'日记本描述'
)
content
=
models
.
CharField
(
verbose_name
=
'日记本内容'
)
description
=
models
.
CharField
(
verbose_name
=
'日记本描述'
,
max_length
=
200
)
content
=
models
.
CharField
(
verbose_name
=
'日记本内容'
,
max_length
=
1000
)
share_num
=
models
.
IntegerField
(
verbose_name
=
''
)
vote_num
=
models
.
IntegerField
(
verbose_name
=
'点赞数'
)
reply_num
=
models
.
IntegerField
(
verbose_name
=
'回复数'
)
cover
=
models
.
CharField
(
verbose_name
=
''
)
cover
=
models
.
CharField
(
verbose_name
=
''
,
max_length
=
200
)
is_online
=
models
.
BooleanField
(
verbose_name
=
'是否上线'
)
is_deleted
=
models
.
BooleanField
(
verbose_name
=
'是否删除'
)
content_level
=
models
.
CharField
(
verbose_name
=
'内容等级'
)
content_level
=
models
.
CharField
(
verbose_name
=
'内容等级'
,
max_length
=
3
)
create_time
=
models
.
DateTimeField
(
verbose_name
=
u'日记创建时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
update_time
=
models
.
DateTimeField
(
verbose_name
=
u'日记更新时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
...
...
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