
    yQeR                     v   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ej                        Z ej                  e       G d d	ej                   e             Z ej                  e	       G d
 d	eej                                Z ej                  e
       G d d	ej                                Zy)    )admin)ImportExportModelAdmin)DateRangeFilterNumericRangeFilter)	PlantillaEspeciesCambioServicio)Attrc                        e Zd ZdZdZd Zd Zy)Tipo_vehiculozFiltrar por Tipotipoc                 
    ddgS )N)CARROr   )MOTOCICLETAr    )selfrequestmodel_admins      9C:\Users\user\PycharmProjects\TransitoApp\Costos\admin.pylookupszTipo_vehiculo.lookups   s    )
 	
    c                     | j                         dk(  r|j                  d      S | j                         dk(  r|j                  d      S y )Nr   )r   r   )tipo__icontains)valuefilter)r   r   querysets      r   r   zTipo_vehiculo.queryset   sW    ::<=(??" #   ZZ\W$?? ' #   %r   N)__name__
__module____qualname__titleparameter_namer   r   r   r   r   r   r      s    EN
r   r   c                   J    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y)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#      sR    	?LiO,.HI[-\^r  tF  ^G  HU  V_  aK Mr   r#   c                   8    e Zd Z ee      Z ee      ZddgZeZy)r#   fecha_generacionr'   N)	r   r   r   r
   r   r(   r)   r*   r+   r   r   r   r#   r#   $   s$    >Lh%i0K Mr   c                   ,    e Zd Z ee      Z ee      Zy)r#   N)r   r   r   r
   r	   r(   r)   r   r   r   r#   r#   +   s    'Ln-r   N)django.contribr   import_export.adminr   rangefilter.filtersr   r   Costos.modelsr   r   r	   TransitoApp.snnipersr
   SimpleListFilterr   register
ModelAdminr#   r   r   r   <module>r7      s      6 C = = %E** * 	!U} ! ! !#E$4$4 ! ! .U .  .r   