https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/contrib/flatpages/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/contrib/flatpages/__pycache__/models.cpython-310.pyc
o

�a��@sZddlmZddlmZddlmZmZmZddlm	Z	ddl
mZGdd�dej
�ZdS)	�)�Site)�models)�NoReverseMatch�get_script_prefix�reverse)�
iri_to_uri)�gettext_lazyc@s�eZdZejed�ddd�Zejed�dd�Zejed�dd	�Z	ej
ed
�dd�Zejed
�dded�d�Zej
ed�ed�dd�Z
ejeed�d�ZGdd�d�Zdd�Zdd�ZdS)�FlatPage�URL�dT)�
max_length�db_index�title��)r�content)�blankzenable commentsF)�defaultz
template name�FuwExample: “flatpages/contact_page.html”. If this isn’t provided, the system will use “flatpages/default.html”.)rr�	help_textzregistration requiredzGIf this is checked, only logged-in users will be able to view the page.)rr�sites)�verbose_namec@s&eZdZdZed�Zed�ZdgZdS)z
FlatPage.Meta�django_flatpagez	flat pagez
flat pages�urlN)�__name__�
__module__�__qualname__�db_table�_r�verbose_name_plural�ordering�r r �A/usr/lib/python3/dist-packages/django/contrib/flatpages/models.py�Metas

r"cCsd|j|jfS)Nz%s -- %s)rr)�selfr r r!�__str__#szFlatPage.__str__c	Csbddlm}|j�d�|jfD]}zt|d|id�WSty%Yqwtt��d�|j�S)N�)�flatpage�/r)�kwargs)	�viewsr&r�lstriprrrr�rstrip)r#r&rr r r!�get_absolute_url&s�zFlatPage.get_absolute_urlN)rrrr�	CharFieldrrr�	TextFieldr�BooleanField�enable_comments�
template_name�registration_required�ManyToManyFieldrrr"r$r,r r r r!r	s,��	�r	N)�django.contrib.sites.modelsr�	django.dbr�django.urlsrrr�django.utils.encodingr�django.utils.translationrr�Modelr	r r r r!�<module>s

https://t.me/RX1948 - 2025