from django.contrib import admin

from .models import Booking, Property, AvailabilityDate, PricingPeriod

from .booking_form import BookingForm
from .pricing_period_form import PricingPeriodForm


class BookingAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = ('dates',)
    form = BookingForm
    list_display = ('property', 'start_date', 'end_date', 'customer_name')
    list_filter = ('property', 'start_date',)

class AvailabilityAdmin(admin.ModelAdmin):
    view_on_site = False
    list_display = ('date', 'cottage_booking_status', 'barn_booking_status',
                    'cottage_week_price', 'cottage_week_price_discount', 'barn_week_price', 'barn_week_price_discount')
    list_filter = ('date', 'cottage_booking_status', 'barn_booking_status',)

class PropertyAdmin(admin.ModelAdmin):
    view_on_site = False

class PricingPeriodAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = ('dates',)
    form = PricingPeriodForm
    list_display = ('property', 'start_date', 'end_date', 'price', 'discount')
    list_filter = ('property', 'start_date',)


# Register your models here.
admin.site.register(AvailabilityDate, AvailabilityAdmin)
admin.site.register(Booking, BookingAdmin)
admin.site.register(Property, PropertyAdmin)
admin.site.register(PricingPeriod, PricingPeriodAdmin)

d9b1fbd718a7c41899132b99c699742b745de87b
<mask token>


class PropertyAdmin(admin.ModelAdmin):
    <mask token>


class PricingPeriodAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = 'dates',
    form = PricingPeriodForm
    list_display = 'property', 'start_date', 'end_date', 'price', 'discount'
    list_filter = 'property', 'start_date'


<mask token>

<mask token>


class BookingAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class AvailabilityAdmin(admin.ModelAdmin):
    view_on_site = False
    list_display = ('date', 'cottage_booking_status', 'barn_booking_status',
        'cottage_week_price', 'cottage_week_price_discount',
        'barn_week_price', 'barn_week_price_discount')
    list_filter = 'date', 'cottage_booking_status', 'barn_booking_status'


class PropertyAdmin(admin.ModelAdmin):
    view_on_site = False


class PricingPeriodAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = 'dates',
    form = PricingPeriodForm
    list_display = 'property', 'start_date', 'end_date', 'price', 'discount'
    list_filter = 'property', 'start_date'


<mask token>

<mask token>


class BookingAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = 'dates',
    form = BookingForm
    list_display = 'property', 'start_date', 'end_date', 'customer_name'
    list_filter = 'property', 'start_date'


class AvailabilityAdmin(admin.ModelAdmin):
    view_on_site = False
    list_display = ('date', 'cottage_booking_status', 'barn_booking_status',
        'cottage_week_price', 'cottage_week_price_discount',
        'barn_week_price', 'barn_week_price_discount')
    list_filter = 'date', 'cottage_booking_status', 'barn_booking_status'


class PropertyAdmin(admin.ModelAdmin):
    view_on_site = False


class PricingPeriodAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = 'dates',
    form = PricingPeriodForm
    list_display = 'property', 'start_date', 'end_date', 'price', 'discount'
    list_filter = 'property', 'start_date'


<mask token>

<mask token>


class BookingAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = 'dates',
    form = BookingForm
    list_display = 'property', 'start_date', 'end_date', 'customer_name'
    list_filter = 'property', 'start_date'


class AvailabilityAdmin(admin.ModelAdmin):
    view_on_site = False
    list_display = ('date', 'cottage_booking_status', 'barn_booking_status',
        'cottage_week_price', 'cottage_week_price_discount',
        'barn_week_price', 'barn_week_price_discount')
    list_filter = 'date', 'cottage_booking_status', 'barn_booking_status'


class PropertyAdmin(admin.ModelAdmin):
    view_on_site = False


class PricingPeriodAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = 'dates',
    form = PricingPeriodForm
    list_display = 'property', 'start_date', 'end_date', 'price', 'discount'
    list_filter = 'property', 'start_date'


admin.site.register(AvailabilityDate, AvailabilityAdmin)
admin.site.register(Booking, BookingAdmin)
admin.site.register(Property, PropertyAdmin)
admin.site.register(PricingPeriod, PricingPeriodAdmin)

from django.contrib import admin

from .models import Booking, Property, AvailabilityDate, PricingPeriod

from .booking_form import BookingForm
from .pricing_period_form import PricingPeriodForm


class BookingAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = ('dates',)
    form = BookingForm
    list_display = ('property', 'start_date', 'end_date', 'customer_name')
    list_filter = ('property', 'start_date',)

class AvailabilityAdmin(admin.ModelAdmin):
    view_on_site = False
    list_display = ('date', 'cottage_booking_status', 'barn_booking_status',
                    'cottage_week_price', 'cottage_week_price_discount', 'barn_week_price', 'barn_week_price_discount')
    list_filter = ('date', 'cottage_booking_status', 'barn_booking_status',)

class PropertyAdmin(admin.ModelAdmin):
    view_on_site = False

class PricingPeriodAdmin(admin.ModelAdmin):
    view_on_site = False
    exclude = ('dates',)
    form = PricingPeriodForm
    list_display = ('property', 'start_date', 'end_date', 'price', 'discount')
    list_filter = ('property', 'start_date',)


# Register your models here.
admin.site.register(AvailabilityDate, AvailabilityAdmin)
admin.site.register(Booking, BookingAdmin)
admin.site.register(Property, PropertyAdmin)
admin.site.register(PricingPeriod, PricingPeriodAdmin)
