|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
|
# coding=utf-8 |
|
|
|
|
from django.contrib import admin |
|
|
|
|
from django.http import HttpResponse |
|
|
|
|
|
|
|
|
|
@ -84,16 +85,16 @@ admin.site.register(Bill, BillAdmin) |
|
|
|
|
|
|
|
|
|
class ServiceRequestAdmin(admin.ModelAdmin): |
|
|
|
|
list_display = ('get_lead_name', 'get_client_name', 'date', 'send', 'send_date', 'host', ) |
|
|
|
|
list_filter = ('send', 'company', 'service', 'host', 'send_date',) |
|
|
|
|
list_filter = ('send', 'company', 'service', 'host', 'send_date', ) |
|
|
|
|
search_fields = ['lead_name', 'email', 'phone', 'name', 'host'] |
|
|
|
|
|
|
|
|
|
admin.site.register(ServiceRequest, ServiceRequestAdmin) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PriceAdmin(admin.ModelAdmin): |
|
|
|
|
list_display = ('title', 'course', 'cost', 'public', 'key', 'url', 'freepay', ) |
|
|
|
|
list_display = ('title', 'course', 'cost', 'public', 'key', 'freepay', ) |
|
|
|
|
filter_horizontal = ['included'] |
|
|
|
|
list_filter = ['freepay'] |
|
|
|
|
list_filter = ['freepay', 'service__course',] |
|
|
|
|
|
|
|
|
|
admin.site.register(Price, PriceAdmin) |
|
|
|
|
|
|
|
|
|
|