sync from local backup
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
from django.contrib import admin
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from .models import Changelog
|
||||
|
||||
|
||||
@admin.register(Changelog)
|
||||
class ChangelogAdmin(admin.ModelAdmin):
|
||||
list_display = ['version', 'title', 'update_type', 'published_at', 'is_published', 'created_at']
|
||||
list_filter = ['update_type', 'is_published', 'published_at']
|
||||
search_fields = ['version', 'title', 'description']
|
||||
ordering = ['-published_at']
|
||||
list_editable = ['is_published']
|
||||
list_per_page = 20
|
||||
date_hierarchy = 'published_at'
|
||||
|
||||
fieldsets = (
|
||||
(_('Basic Information'), {
|
||||
'fields': ('version', 'title', 'description')
|
||||
}),
|
||||
(_('Type and Publishing'), {
|
||||
'fields': ('update_type', 'published_at', 'is_published')
|
||||
}),
|
||||
)
|
||||
Reference in New Issue
Block a user