B
    ¤0H[Ë  ã               @   sR   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z
 G dd„ dejƒZdS )	é    )ÚSite)Úmodels)Úget_script_prefix)Ú
iri_to_uri)Úgettext_lazyc               @   s¸   e Zd Zejedƒddd�Zejedƒdd�Zejedƒdd	�Z	ej
ed
ƒdd�Zejedƒddedƒd�Zej
edƒedƒdd�Zejeedƒd�ZG dd„ dƒZdd„ Zdd„ ZdS )ÚFlatPageÚURLéd   T)Ú
max_lengthZdb_indexÚtitleéÈ   )r
   Úcontent)Úblankzenable commentsF)Údefaultztemplate nameéF   zmExample: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.)r
   r   Ú	help_textzregistration requiredzGIf this is checked, only logged-in users will be able to view the page.)r   r   Úsites)Úverbose_namec               @   s$   e Zd ZdZedƒZedƒZdZdS )zFlatPage.MetaZdjango_flatpagez	flat pagez
flat pages)ÚurlN)Ú__name__Ú
__module__Ú__qualname__Zdb_tableÚ_r   Zverbose_name_pluralZordering© r   r   úcC:\Users\HIRONO~1\AppData\Local\Temp\pip-install-6bm3nxem\django\django\contrib\flatpages\models.pyÚMeta   s   r   c             C   s   d| j | jf S )Nz%s -- %s)r   r   )Úselfr   r   r   Ú__str__#   s    zFlatPage.__str__c             C   s   t tƒ  d¡| j ƒS )Nú/)r   r   Úrstripr   )r   r   r   r   Úget_absolute_url&   s    zFlatPage.get_absolute_urlN)r   r   r   r   Z	CharFieldr   r   r   Z	TextFieldr   ZBooleanFieldZenable_commentsZtemplate_nameZregistration_requiredZManyToManyFieldr   r   r   r   r    r   r   r   r   r      s$   
r   N)Zdjango.contrib.sites.modelsr   Z	django.dbr   Zdjango.urlsr   Zdjango.utils.encodingr   Zdjango.utils.translationr   r   ZModelr   r   r   r   r   Ú<module>   s
   