from sets.admin import *
from .models import *
from django.contrib import admin

class Admin_Route(Admin_Trans_BaseModel):
    list_display = [
        'id', 'owner_type', 'type_transport', 'cargo_type',
        'departure_DT', 'from_city', 'from_place',
        'arrival_DT', 'to_city', 'to_place', 'owner',
        'order', 'modifiedDT', 'createDT'
    ]

    list_display_links = ['id']

    list_filter = ['owner_type', 'type_transport', 'cargo_type', 'from_place', 'arrival_DT', 'modifiedDT', 'createDT']
    search_fields = ['owner__first_name', 'owner__last_name']

admin.site.register(Route,Admin_Route)
