mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-04-25 01:14:42 +00:00
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@35 cfb8ba98-e953-0410-9cff-959ffddf5974 committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974> --HG-- extra : convert_revision : 3be7558f64d204bc9cbb445cb6e1b8ae84369a82
17 lines
538 B
Python
17 lines
538 B
Python
from django.contrib import admin
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from dbtemplates.models import Template
|
|
|
|
class TemplateAdmin(admin.ModelAdmin):
|
|
fieldsets = (
|
|
(None, {'fields': ('name', 'content', 'sites')}),
|
|
(_('Date information'), {
|
|
'fields': ('creation_date', 'last_changed'),
|
|
'classes': ('collapse',)
|
|
}),
|
|
)
|
|
list_display = ('name', 'creation_date', 'last_changed')
|
|
search_fields = ('name', 'content')
|
|
|
|
admin.site.register(Template, TemplateAdmin)
|