# -*- coding: utf-8 -*-

from django.contrib import admin

from pay.models import OrderInfo


class OrderInfoAdmin(admin.ModelAdmin):
    readonly_fields = ('order_id', 'prepay_id', 'transaction_id', 'unifiedorder_result', 'notify_msg')
    list_display = ('order_id', 'photo_type', 'photo_status', 'from_uid', 'to_uid', 'pay_status', 'paid_at', 'reback_status', 'reback_at', 'status', 'created_at', 'updated_at')
    list_filter = ('photo_type', 'photo_status', 'pay_status', 'reback_status', 'status')


admin.site.register(OrderInfo, OrderInfoAdmin)
