a
    Dg(                     @   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
    Z
postgresqlzb
            ALTER TABLE wagtailcore_page ALTER COLUMN path TYPE VARCHAR(255) COLLATE "C"
        N)
connectionvendorexecute)ZappsZschema_editor r   ^/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/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)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%   Z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)r.   r/   )r   Zunique_togetherZgrouppagepermissionZgroup_permissions)Z
model_namer   fieldZpreserve_defaultN)__name__
__module____qualname__r   Zswappable_dependencyr   ZAUTH_USER_MODELZ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.indexr6   r
   r   r   r   r   r	   <module>   s   