Merge branch 'feature/page_limit' into feature/0611
Showing
1 changed file
with
7 additions
and
1 deletions
1 | from django.contrib import admin | 1 | from django.contrib import admin |
2 | from .models import Keywords | 2 | from .models import Keywords, Configs |
3 | from .named_enum import KeywordsType | 3 | from .named_enum import KeywordsType |
4 | 4 | ||
5 | 5 | ||
... | @@ -14,6 +14,12 @@ class KeywordsAdmin(admin.ModelAdmin): | ... | @@ -14,6 +14,12 @@ class KeywordsAdmin(admin.ModelAdmin): |
14 | type_verbose_name.short_description = '类型' | 14 | type_verbose_name.short_description = '类型' |
15 | 15 | ||
16 | 16 | ||
17 | # Register your models here. | ||
18 | class ConfigsAdmin(admin.ModelAdmin): | ||
19 | list_display = ('id', 'value', 'comment') | ||
20 | |||
21 | |||
17 | admin.site.register(Keywords, KeywordsAdmin) | 22 | admin.site.register(Keywords, KeywordsAdmin) |
23 | admin.site.register(Configs, ConfigsAdmin) | ||
18 | admin.site.site_header = '宝马OCR' | 24 | admin.site.site_header = '宝马OCR' |
19 | admin.site.site_title = '宝马OCR' | 25 | admin.site.site_title = '宝马OCR' | ... | ... |
-
Please register or sign in to post a comment