SiteSettings admin
This commit is contained in:
parent
8c1959e5a5
commit
419099d280
1 changed files with 6 additions and 0 deletions
|
@ -10,3 +10,9 @@ class PageAdmin(admin.ModelAdmin):
|
||||||
search_fields = ['name', 'body']
|
search_fields = ['name', 'body']
|
||||||
|
|
||||||
admin.site.register(models.Page, PageAdmin)
|
admin.site.register(models.Page, PageAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
class SiteSettingsAdmin(admin.ModelAdmin):
|
||||||
|
search_fields = ['key', 'value']
|
||||||
|
|
||||||
|
admin.site.register(models.SiteSettings, SiteSettingsAdmin)
|
||||||
|
|
Loading…
Reference in a new issue