Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d77dfabd
authored
2021-06-28 14:11:37 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/page_limit' into feature/0611
2 parents
647c603e
3d0dc35f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/apps/doc/admin.py
src/apps/doc/admin.py
View file @
d77dfab
from
django.contrib
import
admin
from
.models
import
Keywords
from
.models
import
Keywords
,
Configs
from
.named_enum
import
KeywordsType
...
...
@@ -14,6 +14,12 @@ class KeywordsAdmin(admin.ModelAdmin):
type_verbose_name
.
short_description
=
'类型'
# Register your models here.
class
ConfigsAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'id'
,
'value'
,
'comment'
)
admin
.
site
.
register
(
Keywords
,
KeywordsAdmin
)
admin
.
site
.
register
(
Configs
,
ConfigsAdmin
)
admin
.
site
.
site_header
=
'宝马OCR'
admin
.
site
.
site_title
=
'宝马OCR'
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment