from django.contrib import admin from .models import PMSConfiguration, PMSIntegrationLog # Register your models here. @admin.register(PMSConfiguration) class PMSConfigurationAdmin(admin.ModelAdmin): list_display = ('name', 'parser_settings', 'description', 'created_at') search_fields = ('name', 'description') list_filter = ('created_at',) ordering = ('-created_at',) @admin.register(PMSIntegrationLog) class PMSIntegrationLogAdmin(admin.ModelAdmin): list_display = ('hotel', 'checked_at', 'status', 'message') search_fields = ('hotel__name', 'status', 'message') list_filter = ('status', 'checked_at') ordering = ('-checked_at',)