mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
654 B
Python
20 lines
654 B
Python
5 years ago
|
from django.contrib import admin
|
||
|
from django.contrib.flatpages.forms import FlatpageForm
|
||
|
from django.contrib.flatpages.models import FlatPage
|
||
|
from django.utils.translation import gettext_lazy as _
|
||
|
|
||
|
|
||
|
@admin.register(FlatPage)
|
||
|
class FlatPageAdmin(admin.ModelAdmin):
|
||
|
form = FlatpageForm
|
||
|
fieldsets = (
|
||
|
(None, {'fields': ('url', 'title', 'content', 'sites')}),
|
||
|
(_('Advanced options'), {
|
||
|
'classes': ('collapse',),
|
||
|
'fields': ('registration_required', 'template_name'),
|
||
|
}),
|
||
|
)
|
||
|
list_display = ('url', 'title')
|
||
|
list_filter = ('sites', 'registration_required')
|
||
|
search_fields = ('url', 'title')
|