
    vg>	                         d 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      Z G d d	e      Z G d
 de      Z G d d      Zy)zG
filters.py

This page is used to register filter for employee models

    )forms)
CharFilter
DateFilter)FAQFAQCategoryTicket)	FilterSetc                   8    e Zd ZdZ edd      Z G d d      Zy)	FAQFilterzw
    Filter set class for FAQ model

    Args:
        FilterSet (class): custom filter set class to apply styling
    question	icontains
field_namelookup_exprc                       e Zd ZdZeZddgZy)FAQFilter.Meta7
        Meta class to add the additional info
        searchtagsN)__name__
__module____qualname____doc__r   modelfields     #/var/www/horilla/helpdesk/filter.pyMetar      s    	 
r   r   Nr   r   r   r   r   r   r   r   r   r   r   r      s     :;GF	
 	
r   r   c                   8    e Zd ZdZ edd      Z G d d      Zy)FAQCategoryFilterz
    Filter set class for FAQ category model

    Args:
        FilterSet (class): custom filter set class to apply styling
    titler   r   c                       e Zd ZdZeZdgZy)FAQCategoryFilter.Metar   r   N)r   r   r   r   r   r   r   r   r   r   r   r%   /   s    	 
r   r   Nr    r   r   r   r"   r"   %   s     7DF
 
r   r"   c                       e Zd ZdZ edd      Z edd ej                  ddi	      
      Z	 edd ej                  ddi	      
      Z
 G d d      Zy)TicketFilterzz
    Filter set class for Ticket model

    Args:
        FilterSet (class): custom filter set class to apply styling
    r#   r   r   deadlinegtetypedate)attrs)r   r   widgetltec                       e Zd ZdZeZg dZy)TicketFilter.Metar   )	r#   r   employee_idticket_typepriorityr(   assigned_tostatus	is_activeN)r   r   r   r   r   r   r   r   r   r   r   r0   N   s    	 

r   r   N)r   r   r   r   r   r   r   r   	DateInput	from_dateto_dater   r   r   r   r'   r'   :   sg     7DFuff%56I
 uff%56G
 
r   r'   c                       e Zd ZdZg dZy)TicketReGroupz:
    Class to keep the field name for group by option
    )) Select)r1   Owner)r2   zTicket Type)r5   Status)r3   Priority)r   Tags)r4   Assigner)+employee_id__employee_work_info__company_idCompanyN)r   r   r   r   r   r   r   r   r;   r;   a   s    	Fr   r;   N)r   djangor   django_filtersr   r   helpdesk.modelsr   r   r   horilla.filtersr	   r   r"   r'   r;   r   r   r   <module>rI      sJ     1 4 4 %
	 
,
	 
*$
9 $
N r   