a
    Dg                     @   s2   d dl mZ dd Zdd ZG dd dejZdS )	    )
migrationsc              	   C   s  |  d}|  d}|  d}|  d}|  d}|jjddd\}}|jjd	d
|ddddd}	|jjdd|ddddd}
|jjd|
jdd |jjdd}|jjdd}|jj||	dd |jj||	dd |jj||	dd |jj||	dd |jj||	dd d S )Nzcontenttypes.ContentTypez
auth.Groupzwagtailcore.Pagezwagtailcore.Sitezwagtailcore.GroupPagePermissionpagewagtailcore)modelZ	app_labelZRootrootZ0001   /)titleZslugcontent_typepathdepthZnumchildZurl_pathz!Welcome to your new Wagtail site!homeZ00010001   r   z/home/	localhostT)hostnameZroot_page_idZis_default_siteZ
Moderators)nameZEditorsadd)groupr   Zpermission_typeZeditpublish)Z	get_modelZobjectsZget_or_createcreateid)appsschema_editorZContentTypeGroupZPageZSiteZGroupPagePermissionZpage_content_typecreatedr   ZhomepageZmoderators_groupZeditors_group r   c/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/site-packages/wagtail/migrations/0002_initial_data.pyinitial_data   sp    





r   c                 C   s   dS )zThis function does nothing. The below code is commented out together
    with an explanation of why we don't need to bother reversing any of the
    initial dataNr   )r   r   r   r   r   remove_initial_dataL   s    r   c                   @   s    e Zd ZdgZeeegZdS )	Migration)r   Z0001_initialN)	__name__
__module____qualname__Zdependenciesr   Z	RunPythonr   r   
operationsr   r   r   r   r   e   s   
r   N)Z	django.dbr   r   r   r   r   r   r   r   <module>   s   H