U
    _Nd                     @   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}|jjdd  |jjddd	\}}|jjd
d
d|ddddd}|jjd|dd d S )Ncontenttypes.ContentTypezwagtailcore.Pagezwagtailcore.Sitehome.HomePage   )idhomepagehomemodel	app_labelZHomeZ00010001r   z/home/)titledraft_titleslugcontent_typepathdepthnumchildurl_path	localhostT)hostname	root_pageis_default_site)	get_modelobjectsfilterdeleteget_or_createcreate)	appsschema_editorContentTypePageSiteHomePageZhomepage_content_type__r    r%   ?/var/www/html/dirtybits/home/migrations/0002_create_homepage.pycreate_homepage   s(    



 
r'   c                 C   s@   |  d}|  d}|jjddd  |jjddd  d S )Nr   r   r   r   )r   r   r   r	   )r   r   r   r   )r   r   r    r#   r%   r%   r&   remove_homepage%   s    

r(   c                   @   s&   e Zd ZdgZdgZeeegZ	dS )	Migration)wagtailcoreZ0053_locale_model)r   0001_initialN)
__name__
__module____qualname__
run_beforedependenciesr   	RunPythonr'   r(   
operationsr%   r%   r%   r&   r)   2   s   
r)   N)	django.dbr   r'   r(   r)   r%   r%   r%   r&   <module>   s    