ó
®â0_c           @  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
 d e j f d „  ƒ  Yƒ Z d	 S(
   iÿÿÿÿ(   t   unicode_literals(   t   Site(   t   models(   t   get_script_prefix(   t
   iri_to_urit   python_2_unicode_compatible(   t   ugettext_lazyt   FlatPagec        	   B  s  e  Z e j e d  ƒ d d d e ƒZ e j e d ƒ d d ƒZ e j e d ƒ d e ƒZ	 e j
 e d ƒ d	 e ƒZ e j e d
 ƒ d d d e d e d ƒ ƒZ e j
 e d ƒ d e d ƒ d	 e ƒZ e j e d e d ƒ ƒZ d d d „  ƒ  YZ d „  Z d „  Z RS(   u   URLt
   max_lengthid   t   db_indexu   titleiÈ   u   contentt   blanku   enable commentst   defaultu   template nameiF   t	   help_textum   Example: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.u   registration requireduG   If this is checked, only logged-in users will be able to view the page.t   verbose_nameu   sitest   Metac           B  s,   e  Z d  Z e d ƒ Z e d ƒ Z d Z RS(   u   django_flatpageu	   flat pageu
   flat pagesu   url(   u   url(   t   __name__t
   __module__t   db_tablet   _R   t   verbose_name_pluralt   ordering(    (    (    sA   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/flatpages/models.pyR       s   c         C  s   d |  j  |  j f S(   Nu   %s -- %s(   t   urlt   title(   t   self(    (    sA   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/flatpages/models.pyt   __str__&   s    c         C  s   t  t ƒ  j d ƒ |  j ƒ S(   Nu   /(   R   R   t   rstripR   (   R   (    (    sA   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/flatpages/models.pyt   get_absolute_url)   s    (    (   R   R   R   t	   CharFieldR   t   TrueR   R   t	   TextFieldt   contentt   BooleanFieldt   Falset   enable_commentst   template_namet   registration_requiredt   ManyToManyFieldR   t   sitesR   R   R   (    (    (    sA   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/flatpages/models.pyR   
   s$   !		N(   t
   __future__R    t   django.contrib.sites.modelsR   t	   django.dbR   t   django.urlsR   t   django.utils.encodingR   R   t   django.utils.translationR   R   t   ModelR   (    (    (    sA   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/flatpages/models.pyt   <module>   s   