U
    yfR                     @   s   d dl mZ d dlmZ d dlmZmZ d dlmZm	Z	m
Z
 d dlmZ G dd dejZeeG dd	 d	ejeZee	G d
d	 d	eejZee
G dd	 d	ejZdS )    )admin)ImportExportModelAdmin)DateRangeFilterNumericRangeFilter)	PlantillaEspeciesCambioServicio)Attrc                   @   s$   e Zd ZdZdZdd Zdd ZdS )Tipo_vehiculozFiltrar por Tipotipoc                 C   s   ddgS )N)CARROr   )MOTOCICLETAr    )selfrequestmodel_adminr   r   )/var/www/html/TransitoApp/Costos/admin.pylookups   s    zTipo_vehiculo.lookupsc                 C   s4   |   dkr|jddS |   dkr0|jddS d S )Nr   )r   r   )Ztipo__icontains)valuefilter)r   r   querysetr   r   r   r      s    zTipo_vehiculo.querysetN)__name__
__module____qualname__titleparameter_namer   r   r   r   r   r   r
      s   r
   c                   @   s:   e Zd ZeeZeeZdefdefdefe	dgZ
eZdS )modelofechanumero_especie_matriculanumero_especie_rtvusuarioN)r   r   r   r	   r   list_displaylist_display_linksr   r   r
   list_filtersearch_fieldsr   r   r   r   r      s   r   c                   @   s(   e Zd ZeeZeeZddgZeZdS )r   fecha_generacionr    N)	r   r   r   r	   r   r!   r"   r#   r$   r   r   r   r   r   $   s   c                   @   s   e Zd ZeeZeeZdS )r   N)r   r   r   r	   r   r!   r"   r   r   r   r   r   +   s   N)Zdjango.contribr   Zimport_export.adminr   Zrangefilter.filtersr   r   ZCostos.modelsr   r   r   TransitoApp.snnipersr	   SimpleListFilterr
   register
ModelAdminr   r   r   r   r   <module>   s   