ó
ø¢TQc           @  ss   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
 e
 d e j f d „  ƒ  Yƒ Z d S(	   iÿÿÿÿ(   t   unicode_literals(   t   models(   t   Site(   t   ugettext_lazy(   t   python_2_unicode_compatiblet   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 ƒ ƒ Z e j e d	 ƒ d d
 d e d e d ƒ ƒZ e j
 e d ƒ d e d ƒ ƒZ e j e ƒ Z d d d „  ƒ  YZ d „  Z d „  Z RS(   u   URLt
   max_lengthid   t   db_indexu   titleiÈ   u   contentt   blanku   enable commentsu   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   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   _t   verbose_namet   verbose_name_pluralt   ordering(    (    (    s8   ../Django//lib/python/django/contrib/flatpages/models.pyR
      s   c         C  s   d |  j  |  j f S(   Nu   %s -- %s(   t   urlt   title(   t   self(    (    s8   ../Django//lib/python/django/contrib/flatpages/models.pyt   __str__   s    c         C  s   |  j  S(   N(   R   (   R   (    (    s8   ../Django//lib/python/django/contrib/flatpages/models.pyt   get_absolute_url   s    (    (   R   R   R   t	   CharFieldR   t   TrueR   R   t	   TextFieldt   contentt   BooleanFieldt   enable_commentst   template_namet   registration_requiredt   ManyToManyFieldR   t   sitesR
   R   R   (    (    (    s8   ../Django//lib/python/django/contrib/flatpages/models.pyR   	   s   !!	N(   t
   __future__R    t	   django.dbR   t   django.contrib.sites.modelsR   t   django.utils.translationR   R   t   django.utils.encodingR   t   ModelR   (    (    (    s8   ../Django//lib/python/django/contrib/flatpages/models.pyt   <module>   s   