o
    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 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)appsschema_editor r   _/var/www/html/ndineBlogger/venv/lib/python3.10/site-packages/wagtail/migrations/0001_initial.pyset_page_path_collation   s
   r   c                   @   s2  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g d
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d.e	jdd/dd0d1fd2e	jdd3dd0d1fd4e	jddd!fd5e	je	jd6d7dfd8e	je	jddejdd9d: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d?fd@e	 fdAe	jdddBfdCe	je	jdDdEdfdFe	je	jddejdGfgi e	jfdejdHde	j
dddddfdIe	jddJfdCe	je	jdDdKdfgi e	jfdejdLde	j
dddddfdMe	jdddNfdOe	jdPdQd+fdRe	jddSd+fdTe	je	jdDdUdfgi e	jfdejdVdWhdXejdYdCe	je	jdDdZddd[gZd\S )]	Migration)auth0001_initial)contenttypesr   GroupPagePermissionidFIDT)	serializeverbose_nameprimary_keyauto_createdpermission_type))addAdd)editEdit)publishPublish   )choices
max_lengthgroupz
auth.Grouppage_permissions)	on_deletetorelated_name)namefieldsoptionsbasesPagepath   )r"   uniquedepthnumchildr   )defaulttitlez8The page title as you'd like it to be seen by the public)r"   	help_textslugzTThe name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/)r4   live)r2   editablehas_unpublished_changesurl_path)blankr"   r7   	seo_titlez\Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.z
Page title)r:   r"   r4   r   show_in_menuszHWhether a link to this page will appear in automatically generated menus)r2   r4   search_description)r:   
go_live_atzGo live date/timez7Please add a date-time in the form YYYY-MM-DD hh:mm:ss.)r:   r   nullr4   	expire_atzExpiry date/timeexpiredcontent_typezcontenttypes.ContentTypepagesownerowned_pages)r%   r:   r?   r&   r7   r'   abstractPageRevisionsubmitted_for_moderation
created_at)auto_now_addcontent_jsonapproved_go_live_at)r:   r?   pagezwagtailcore.Page	revisionsuser)r%   r:   r?   r&   PageViewRestrictionpassword)r"   view_restrictionsSitehostname)r"   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).is_default_sitezjIf true, this site will handle requests for all other hostnames that do not have a site entry of their own	root_pagesites_rooted_heresite)rT   rV   )r(   unique_togethergrouppagepermissiongroup_permissions)
model_namer(   fieldpreserve_defaultN)__name__
__module____qualname__r   swappable_dependencyr   AUTH_USER_MODELdependenciesCreateModelr   	AutoField	CharField
ForeignKeyCASCADEModelPositiveIntegerField	SlugFieldBooleanField	TextFieldDateTimeFieldwagtailsearchindexIndexed	RunPythonr   noopIntegerFieldAlterUniqueTogetherAddField
operationsr   r   r   r   r      s   

#	

		_e	
	 %		). r   )	django.confr   	django.dbr   r   wagtail.search.indexrs   r   r   r   r   r   r   <module>   s
    