U
    {h(                     @   sB   d dl mZ d dlmZmZ d dlZdd ZG dd dejZdS )    )settings)
migrationsmodelsNc                 C   s   |j jdkr|d dS )a<  
    Treebeard's path comparison logic can fail on certain locales such as sk_SK, which
    sort numbers after letters. To avoid this, we explicitly set the collation for the
    'path' column to the (non-locale-specific) 'C' collation.

    See: https://groups.google.com/d/msg/wagtail/q0leyuCnYWI/I9uDvVlyBAAJ
    
postgresqlzb
            ALTER TABLE wagtailcore_page ALTER COLUMN path TYPE VARCHAR(255) COLLATE "C"
        N)
connectionvendorexecute)ZappsZschema_editor r	   g/var/www/dating/data/www/fatepal.com/env/lib/python3.8/site-packages/wagtail/migrations/0001_initial.pyset_page_path_collation   s    r   c                   @   s4  e Zd ZdeejdgZejdde	j
dddddfd	e	jd
ddgddfde	je	jdddfgi e	jfdejdde	j
dddddfde	jdddfde	 fde	jddfde	jdddfde	jd d!fd"e	jddd#fd$e	jddd#fd%e	jdddd&fd'e	jddd(d)d*fd+e	jdd,d-fd.e	jdd/fd0e	jdd1dd2d3fd4e	jdd5dd2d3fd6e	jddd#fd7e	je	jd8d9dfd:e	je	jddejdd;d<fgd=diejjje	jfdeeejjejd>de	j
dddddfd?e	jddfd@e	jddAfdBe	 fdCe	jdddDfdEe	je	jdFdGdfdHe	je	jddejdIfgi e	jfdejdJde	j
dddddfdKe	jddLfdEe	je	jdFdMdfgi e	jfdejdNde	j
dddddfdOe	jdddPfdQe	jdRdSd-fdTe	jddUd-fdVe	je	jdFdWdfgi e	jfdejdXdYhdZejd[dEe	je	jdFd\ddd]gZd^S )_	Migration)auth0001_initial)Zcontenttypesr   ZGroupPagePermissionidFZIDT)	serializeverbose_nameZprimary_keyZauto_createdZpermission_type)addAdd)ZeditZEdit)publishZPublish   )choices
max_lengthgroupz
auth.GroupZpage_permissions)	on_deletetorelated_name)namefieldsoptionsbasesZPagepath   )r   uniquedepthZnumchildr   )defaulttitlez8The page title as you'd like it to be seen by the public)r   	help_textZslugzTThe name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/)r&   live)r$   editableZhas_unpublished_changesZurl_path)blankr   r(   Z	seo_titlez\Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.z
Page title)r)   r   r&   r   Zshow_in_menuszHWhether a link to this page will appear in automatically generated menus)r$   r&   Zsearch_description)r)   Z
go_live_atzGo live date/timez7Please add a date-time in the form YYYY-MM-DD hh:mm:ss.)r)   r   nullr&   Z	expire_atzExpiry date/timeZexpiredcontent_typezcontenttypes.ContentTypeZpagesownerZowned_pages)r   r)   r*   r   r(   r   ZabstractZPageRevisionZsubmitted_for_moderationZ
created_at)Zauto_now_addZcontent_jsonZapproved_go_live_at)r)   r*   pagezwagtailcore.PageZ	revisionsuser)r   r)   r*   r   ZPageViewRestrictionpassword)r   Zview_restrictionsZSitehostname)r   Zdb_indexportP   zSet this to something other than 80 if you need a specific port number to appear in URLs (e.g. development on port 8000). Does not affect request handling (so port forwarding still works).Zis_default_sitezjIf true, this site will handle requests for all other hostnames that do not have a site entry of their ownZ	root_pageZsites_rooted_heresite)r0   r1   )r   Zunique_togetherZgrouppagepermissionZgroup_permissions)Z
model_namer   fieldZpreserve_defaultN)__name__
__module____qualname__r   Zswappable_dependencyr   ZAUTH_USER_MODELdependenciesZCreateModelr   Z	AutoFieldZ	CharFieldZ
ForeignKeyZCASCADEZModelZPositiveIntegerFieldZ	SlugFieldZBooleanFieldZ	TextFieldZDateTimeFieldwagtailsearchindexZIndexedZ	RunPythonr   ZnoopZIntegerFieldZAlterUniqueTogetherZAddField
operationsr	   r	   r	   r
   r      s  

#	

		_ e	
	 %		). r   )	Zdjango.confr   Z	django.dbr   r   Zwagtail.search.indexr9   r   r   r	   r	   r	   r
   <module>   s   