# Path: aircox/models/article.py
# class Article(Page):
#     detail_url_name = 'article-detail'
# 
#     objects = ProgramChildQuerySet.as_manager()
# 
#     class Meta:
#         verbose_name = _('Article')
#         verbose_name_plural = _('Articles')
# 
# Path: aircox/admin/page.py
# class PageAdmin(BasePageAdmin):
#     change_list_template = 'admin/aircox/page_change_list.html'
# 
#     list_display = BasePageAdmin.list_display + ('category',)
#     list_editable = BasePageAdmin.list_editable + ('category',)
#     list_filter = BasePageAdmin.list_editable + ('category',)
#     search_fields = ('category__title',)
#     fieldsets = deepcopy(BasePageAdmin.fieldsets)
# 
#     fieldsets[0][1]['fields'].insert(fieldsets[0][1]['fields'].index('slug') + 1, 'category')
#     fieldsets[1][1]['fields'] += ('featured', 'allow_comments')


import copy
from django.contrib import admin
from ..models import Article
from .page import PageAdmin




__all__ = ['ArticleAdmin']


@admin.register(Article)
class ArticleAdmin(PageAdmin):

# Path: aircox/models/article.py
# class Article(Page):
#     detail_url_name = 'article-detail'
# 
#     objects = ProgramChildQuerySet.as_manager()
# 
#     class Meta:
#         verbose_name = _('Article')
#         verbose_name_plural = _('Articles')
# 
# Path: aircox/admin/page.py
# class PageAdmin(BasePageAdmin):
#     change_list_template = 'admin/aircox/page_change_list.html'
# 
#     list_display = BasePageAdmin.list_display + ('category',)
#     list_editable = BasePageAdmin.list_editable + ('category',)
#     list_filter = BasePageAdmin.list_editable + ('category',)
#     search_fields = ('category__title',)
#     fieldsets = deepcopy(BasePageAdmin.fieldsets)
# 
#     fieldsets[0][1]['fields'].insert(fieldsets[0][1]['fields'].index('slug') + 1, 'category')
#     fieldsets[1][1]['fields'] += ('featured', 'allow_comments')


# Path: aircox/admin/article.py
import copy
from django.contrib import admin
from ..models import Article
from .page import PageAdmin





__all__ = ['ArticleAdmin']


@admin.register(Article)
class ArticleAdmin(PageAdmin):

    search_fields = PageAdmin.search_fields + ('parent__title',)