12345678910111213141516171819202122232425262728 |
- from django.contrib import admin
- from metaservicesynced.models import Service
- @admin.register(Service)
- class ServiceAdmin(admin.ModelAdmin):
- list_display = (
- 'id',
- 'servicetype_id',
- 'id_provider',
- 'resource_id',
- 'requirements',
- 'id_metaservice',
- 'price_alg',
- 'price_km',
- 'price_min',
- 'price_amount',
- 'service_status',
- 'status',
- 'ticket_status',
- 'is_global',
- 'is_visible',
- )
- list_filter = (
- 'servicetype_id',
- 'id_provider',
- 'resource_id',
- 'ticket_status',
- )
|