from django.contrib import admin
from admin_ordering.admin import OrderableAdmin
from .models import *

# Register your models here.


@admin.register(LeftPost, MiddlePost, RightPost, Banner)
class PostModelAdmin(OrderableAdmin, admin.ModelAdmin):
    list_display = ['__str__', 'link', 'published', 'ordering']
    list_editable = ['ordering']
    ordering_field_hide_input = True
    exclude = ['ordering']
    
