î

_ÝV  ã               @   s‰   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	 m
 Z
 d  d l m Z e
 Gd d „  d e j ƒ ƒ Z d	 S)
é    )Úunicode_literals)ÚSite)Úget_script_prefix)Úmodels)Ú
iri_to_uriÚpython_2_unicode_compatible)Úugettext_lazyc            	   @   s  e  Z d  Z e j e d ƒ 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 d	 d d e d ƒ ƒZ e j
 e d ƒ d e d ƒ d d ƒZ e j e d e d ƒ ƒZ Gd d „  d ƒ Z d d „  Z d d „  Z d S)ÚFlatPageÚURLÚ
max_lengthéd   Zdb_indexTÚtitleéÈ   ÚcontentZblankzenable commentsÚdefaultFztemplate nameéF   Ú	help_textzmExample: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.zregistration requiredzGIf this is checked, only logged-in users will be able to view the page.Úverbose_nameÚsitesc               @   s4   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)zurl)Ú__name__Ú
__module__Ú__qualname__Zdb_tableÚ_r   Zverbose_name_pluralZordering© r   r   úA/tmp/pip-build-ghmbqnp_/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 ƒ  j 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)Ú
__future__r   Zdjango.contrib.sites.modelsr   Zdjango.core.urlresolversr   Z	django.dbr   Zdjango.utils.encodingr   r   Zdjango.utils.translationr   r   ZModelr	   r   r   r   r   Ú<module>   s   