feat: Add description field
Some checks failed
Python Package CI/CD / Publish to PyPI (push) Failing after 1m9s
Some checks failed
Python Package CI/CD / Publish to PyPI (push) Failing after 1m9s
This commit is contained in:
parent
95d6408362
commit
c482865d6e
3 changed files with 25 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from dbsettings.models import Setting
|
||||
|
||||
# Register your models here.
|
||||
class SettingAdmin(admin.ModelAdmin):
|
||||
list_display = ('key', 'description', 'value')
|
||||
search_fields = ('key', 'description', 'value')
|
||||
ordering = ('key',)
|
||||
|
||||
admin.site.register(Setting)
|
||||
admin.site.register(Setting, SettingAdmin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue