You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
820 B
40 lines
820 B
# -*- coding: utf-8 -*-
|
|
|
|
from django.contrib import admin
|
|
from .models import Payment
|
|
|
|
|
|
class PaymentAdmin(admin.ModelAdmin):
|
|
list_display_links = ('customer_number',)
|
|
list_display = (
|
|
'customer_number',
|
|
'payment_type',
|
|
'order_number',
|
|
'order_amount',
|
|
'shop_amount',
|
|
'shop_currency',
|
|
'invoice_id',
|
|
'status',
|
|
'pub_date',
|
|
'user',
|
|
'cps_phone',
|
|
)
|
|
list_filter = (
|
|
'pub_date',
|
|
'status',
|
|
)
|
|
search_fields = (
|
|
'customer_number',
|
|
'cps_email',
|
|
'cps_phone',
|
|
'scid',
|
|
'shop_id',
|
|
'invoice_id',
|
|
'order_number',
|
|
)
|
|
|
|
def has_add_permission(self, obj):
|
|
return False
|
|
|
|
|
|
admin.site.register(Payment, PaymentAdmin) |