pms_integration in process
This commit is contained in:
@@ -5,8 +5,6 @@ from .models import (
|
||||
UserHotel,
|
||||
APIConfiguration,
|
||||
APIRequestLog,
|
||||
PMSConfiguration,
|
||||
PMSIntegrationLog,
|
||||
Reservation,
|
||||
Guest
|
||||
)
|
||||
@@ -58,22 +56,6 @@ class ApiRequestLogAdmin(admin.ModelAdmin):
|
||||
ordering = ('-request_time',)
|
||||
|
||||
|
||||
@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',)
|
||||
|
||||
|
||||
@admin.register(Reservation)
|
||||
class ReservationAdmin(admin.ModelAdmin):
|
||||
list_display = ('reservation_id', 'hotel', 'room_number', 'room_type', 'check_in', 'check_out', 'status', 'price', 'discount')
|
||||
|
||||
Reference in New Issue
Block a user