|
# -*- coding: utf-8 -*-
from django.contrib import admin
from tenancy.models import TenancyShotInfo, TenancyShotRequestInfo
class TenancyShotInfoAdmin(admin.ModelAdmin):
list_display = ('shot_id', 'model_name', 'sn', 'fittings_type', 'tenancy_status', 'status', 'created_at', 'updated_at')
list_filter = ('fittings_type', 'tenancy_status', 'status')
class TenancyShotRequestInfoAdmin(admin.ModelAdmin):
list_display = ('request_id', 'shot_id', 'user_id', 'identity_card_number', 'identity_card_name', 'name', 'phone', 'location', 'postcode', 'purpose', 'return_date', 'express_name', 'express_com', 'tracking_number', 'tracking_signed', 'back_express_name', 'back_express_com', 'back_tracking_number', 'back_tracking_signed', 'audit_status', 'request_status', 'status', 'created_at', 'updated_at')
admin.site.register(TenancyShotInfo, TenancyShotInfoAdmin)
admin.site.register(TenancyShotRequestInfo, TenancyShotRequestInfoAdmin)
|