You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
701 B
24 lines
701 B
#-*- coding: utf-8 -*-
|
|
from django.contrib import admin
|
|
|
|
from admin_enhancer.admin import EnhancedModelAdminMixin
|
|
# from cms.admin.placeholderadmin import PlaceholderAdminMixin, FrontendEditableAdminMixin
|
|
# from copy import deepcopy
|
|
# from django.contrib import admin
|
|
# from django.conf import settings
|
|
# from django.contrib.auth import get_user_model
|
|
from parler.admin import TranslatableAdmin
|
|
|
|
from .models import Promo
|
|
|
|
|
|
class PromoAdmin(EnhancedModelAdminMixin, TranslatableAdmin):
|
|
fieldsets = [
|
|
(None, {
|
|
'fields': ['title', 'page_link', 'text'],
|
|
}),
|
|
]
|
|
list_display = ('title',)
|
|
search_fields = ['title', 'text']
|
|
|
|
admin.site.register(Promo, PromoAdmin)
|
|
|