ó
i4Vdc           @  s:  d  d l  m Z d  d l m Z d  d l m Z d  d l m Z d  d l m	 Z	 d  d l
 m Z d  d l m Z d e f d	 „  ƒ  YZ d
 e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   unicode_literals(   t   models(   t	   Operation(   t
   ModelState(   t   normalize_together(   t   six(   t   cached_propertyt   CreateModelc           B  sw   e  Z d  Z d d d g Z d d d d „ Z e d „  ƒ Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d d „ Z RS(   u!   
    Create a model's table.
    u   fieldsu   optionsu   managersc         C  sI   | |  _  | |  _ | p i  |  _ | p0 t j f |  _ | p? g  |  _ d  S(   N(   t   namet   fieldst   optionsR   t   Modelt   basest   managers(   t   selfR   R	   R
   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   __init__   s
    		c         C  s   |  j  j ƒ  S(   N(   R   t   lower(   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt
   name_lower   s    c         C  s«   i |  j  d 6|  j d 6} |  j r3 |  j | d <n  |  j ra |  j t j f k ra |  j | d <n  |  j r˜ |  j d t j ƒ  f g k r˜ |  j | d <n  |  j j	 g  | f S(   Nu   nameu   fieldsu   optionsu   basesu   objectsu   managers(
   R   R	   R
   R   R   R   R   t   Managert	   __class__t   __name__(   R   t   kwargs(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   deconstruct   s    
	'	c      	   C  sM   | j  t | |  j t |  j ƒ t |  j ƒ t |  j ƒ t |  j	 ƒ ƒ ƒ d  S(   N(
   t	   add_modelR   R   t   listR	   t   dictR
   t   tupleR   R   (   R   t	   app_labelt   state(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   state_forwards.   s    	c         C  sD   | j  j | |  j ƒ } |  j | j j | ƒ r@ | j | ƒ n  d  S(   N(   t   appst	   get_modelR   t   allow_migrate_modelt
   connectiont   aliast   create_model(   R   R   t   schema_editort
   from_statet   to_statet   model(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   database_forwards8   s    c         C  sD   | j  j | |  j ƒ } |  j | j j | ƒ r@ | j | ƒ n  d  S(   N(   R   R   R   R    R!   R"   t   delete_model(   R   R   R$   R%   R&   R'   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   database_backwards=   s    c         C  s,   d |  j  j d t ƒ r d n d |  j f S(   Nu   Create %smodel %su   proxyu   proxy u    (   R
   t   gett   FalseR   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   describeB   s    c         C  sá   |  j  g } x@ |  j D]5 } t | t j ƒ r | j | j d ƒ d ƒ q q Wx^ |  j D]S \ } } | j rY t | j j	 t j ƒ r¬ | j | j j	 j d ƒ d ƒ q¬ qY qY Wx* | D]" } | j
 ƒ  | j
 ƒ  k r· t Sq· Wt S(   Nu   .iÿÿÿÿ(   R   R   t
   isinstanceR   t   string_typest   appendt   splitR	   t   remote_fieldR'   R   t   TrueR,   (   R   R   R   t   strings_to_checkt   baset   fnamet   fieldt   string(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   references_modelE   s    !	*N(   R   t
   __module__t   __doc__t   serialization_expand_argst   NoneR   R   R   R   R   R(   R*   R-   R9   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR      s   		
			t   DeleteModelc           B  s_   e  Z d  Z d „  Z e d „  ƒ Z d „  Z d „  Z d „  Z d „  Z	 d	 d „ Z d „  Z RS(
   u    
    Drops a model's table.
    c         C  s   | |  _  d  S(   N(   R   (   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   \   s    c         C  s   |  j  j ƒ  S(   N(   R   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   _   s    c         C  s#   i |  j  d 6} |  j j g  | f S(   Nu   name(   R   R   R   (   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   c   s
    	c         C  s   | j  | |  j ƒ d  S(   N(   t   remove_modelR   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   m   s    c         C  sD   | j  j | |  j ƒ } |  j | j j | ƒ r@ | j | ƒ n  d  S(   N(   R   R   R   R    R!   R"   R)   (   R   R   R$   R%   R&   R'   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR(   p   s    c         C  sD   | j  j | |  j ƒ } |  j | j j | ƒ r@ | j | ƒ n  d  S(   N(   R   R   R   R    R!   R"   R#   (   R   R   R$   R%   R&   R'   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR*   u   s    c         C  s   | j  ƒ  |  j k S(   N(   R   R   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR9   z   s    c         C  s   d |  j  f S(   Nu   Delete model %s(   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR-   }   s    N(   R   R:   R;   R   R   R   R   R   R(   R*   R=   R9   R-   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR>   W   s   		
			t   RenameModelc           B  sn   e  Z d  Z d „  Z e d „  ƒ Z e d „  ƒ Z d „  Z d „  Z d „  Z	 d „  Z
 d
 d „ Z d	 „  Z RS(   u   
    Renames a model.
    c         C  s   | |  _  | |  _ d  S(   N(   t   old_namet   new_name(   R   RA   RB   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   †   s    	c         C  s   |  j  j ƒ  S(   N(   RA   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   old_name_lowerŠ   s    c         C  s   |  j  j ƒ  S(   N(   RB   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   new_name_lowerŽ   s    c         C  s-   i |  j  d 6|  j d 6} |  j j g  | f S(   Nu   old_nameu   new_name(   RA   RB   R   R   (   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   ’   s    
	c         C  s«  | j  } | j | |  j ƒ } | | j _  d „  | j j d t ƒ Dƒ } | j | |  j f | j | |  j f <|  j	 | j | |  j f _
 | j | |  j ƒ xó | D]ë } | j | k	 rÀ q¥ n  | j | k rá | |  j f } n | j j j | j j j f } g  } xk | j | j D]Y \ }	 }
 |	 | j j
 k r\|
 j ƒ  }
 d | |  j	 f |
 j _ n  | j |	 |
 f ƒ qW| | j | _ | j | Œ  q¥ W| j | |  j ƒ d  S(   Nc         s  s;   |  ]1 } | j  r | j r | j s/ | j r | Vq d  S(   N(   t   auto_createdt   concretet   hiddent   many_to_many(   t   .0t   f(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pys	   <genexpr>£   s    t   include_hiddenu   %s.%s(   R   R   RA   t   _metat
   get_fieldsR3   R   RC   RD   RB   R   R?   R'   t   related_modelR   t
   model_nameR	   R7   t   cloneR2   R0   t   reload_model(   R   R   R   R   R'   t   all_related_objectst   related_objectt   related_keyt
   new_fieldsR   R7   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR      s.    	&c         C  sØ  | j  j | |  j ƒ } |  j | j j | ƒ rÔ| j  j | |  j ƒ } | j | | j j	 | j j	 ƒ xœ | j j
 D]Ž } | j | k r¡ | } | |  j f }	 n' | j } | j j j | j j j f }	 | j  j |	 Œ  j j | j j ƒ }
 | j | | j |
 ƒ qt Wt | j j | j j ƒ } x° | D]¥ \ } } | j | j k s(| j j j j r_q(n  | j j } | j j } | j | | j j	 | j j	 ƒ | j | | j j | j j ƒ | j j | j j ƒ ƒ q(Wn  d  S(   N(   R   R   RB   R    R!   R"   RA   t   alter_db_tableRL   t   db_tablet   related_objectsRN   RD   R   RO   t	   get_fieldR7   R   t   alter_fieldt   zipt   local_many_to_manyR'   R2   t   throughRE   (   R   R   R$   R%   R&   t	   new_modelt	   old_modelRS   R'   RT   t   to_fieldR	   t	   old_fieldt	   new_fieldt   old_m2m_modelt   new_m2m_model(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR(   Â   sF    			%	c         C  s~   |  j  |  j |  _ |  _  |  j |  j |  _ |  _ |  j | | | | ƒ |  j  |  j |  _ |  _  |  j |  j |  _ |  _ d  S(   N(   RC   RD   RA   RB   R(   (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR*   õ   s
    c         C  s(   | j  ƒ  |  j k p' | j  ƒ  |  j k S(   N(   R   RC   RD   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR9   þ   s    c         C  s   d |  j  |  j f S(   Nu   Rename model %s to %s(   RA   RB   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR-     s    N(   R   R:   R;   R   R   RC   RD   R   R   R(   R*   R=   R9   R-   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR@      s   			%	3		t   AlterModelTablec           B  s_   e  Z d  Z d „  Z e d „  ƒ Z d „  Z d „  Z d „  Z d „  Z	 d	 d „ Z d „  Z RS(
   u!   
    Renames a model's table
    c         C  s   | |  _  | |  _ d  S(   N(   R   t   table(   R   R   Rf   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR     s    	c         C  s   |  j  j ƒ  S(   N(   R   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR     s    c         C  s-   i |  j  d 6|  j d 6} |  j j g  | f S(   Nu   nameu   table(   R   Rf   R   R   (   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR     s    
	c         C  s7   |  j  | j | |  j f j d <| j | |  j ƒ d  S(   Nu   db_table(   Rf   R   R   R
   RQ   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR      s     c   	      C  sà   | j  j | |  j ƒ } |  j | j j | ƒ rÜ | j  j | |  j ƒ } | j | | j j | j j ƒ xr t	 | j j
 | j j
 ƒ D]R \ } } | j j j j rƒ | j | j j | j j j j | j j j j ƒ qƒ qƒ Wn  d  S(   N(   R   R   R   R    R!   R"   RV   RL   RW   R[   R\   R2   R]   RE   (	   R   R   R$   R%   R&   R^   R_   Ra   Rb   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR(   $  s    	(	c         C  s   |  j  | | | | ƒ S(   N(   R(   (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR*   6  s    c         C  s   | j  ƒ  |  j k S(   N(   R   R   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR9   9  s    c         C  s   d |  j  |  j f S(   Nu   Rename table for %s to %s(   R   Rf   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR-   <  s    N(   R   R:   R;   R   R   R   R   R   R(   R*   R=   R9   R-   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyRe     s   					t   AlterUniqueTogetherc           B  sq   e  Z d  Z d Z d „  Z e d „  ƒ Z d „  Z d „  Z d „  Z	 d „  Z
 d d „ Z d d	 „ Z d
 „  Z RS(   u}   
    Changes the value of unique_together to the target one.
    Input value of unique_together must be a set of tuples.
    u   unique_togetherc         C  s2   | |  _  t | ƒ } t d „  | Dƒ ƒ |  _ d  S(   Nc         s  s   |  ] } t  | ƒ Vq d  S(   N(   R   (   RI   t   cons(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pys	   <genexpr>J  s    (   R   R   t   sett   unique_together(   R   R   Rj   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   G  s    	c         C  s   |  j  j ƒ  S(   N(   R   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   L  s    c         C  s-   i |  j  d 6|  j d 6} |  j j g  | f S(   Nu   nameu   unique_together(   R   Rj   R   R   (   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   P  s    
	c         C  s@   | j  | |  j f } |  j | j |  j <| j | |  j ƒ d  S(   N(   R   R   Rj   R
   t   option_nameRQ   (   R   R   R   t   model_state(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   [  s    c         C  sŒ   | j  j | |  j ƒ } |  j | j j | ƒ rˆ | j  j | |  j ƒ } | j | t | j |  j	 t
 ƒ  ƒ t | j |  j	 t
 ƒ  ƒ ƒ n  d  S(   N(   R   R   R   R    R!   R"   t   alter_unique_togethert   getattrRL   Rk   Ri   (   R   R   R$   R%   R&   R^   R_   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR(   `  s    c         C  s   |  j  | | | | ƒ S(   N(   R(   (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR*   j  s    c         C  s   | j  ƒ  |  j k S(   N(   R   R   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR9   m  s    c           s9   |  j  | | ƒ o8 |  j p8 t ‡  f d †  |  j Dƒ ƒ S(   Nc         3  s   |  ] } ˆ  | k Vq d  S(   N(    (   RI   t   together(   R   (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pys	   <genexpr>u  s    (   R9   Rj   t   any(   R   RO   R   R   (    (   R   st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   references_fieldp  s    
c         C  s&   d |  j  |  j t |  j p d ƒ f S(   Nu"   Alter %s for %s (%s constraint(s))u    (   Rk   R   t   lenRj   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR-   y  s    N(   R   R:   R;   Rk   R   R   R   R   R   R(   R*   R=   R9   Rq   R-   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyRg   @  s   				
		t   AlterIndexTogetherc           B  sq   e  Z d  Z d Z d „  Z e d „  ƒ Z d „  Z d „  Z d „  Z	 d „  Z
 d d „ Z d d	 „ Z d
 „  Z RS(   u{   
    Changes the value of index_together to the target one.
    Input value of index_together must be a set of tuples.
    u   index_togetherc         C  s2   | |  _  t | ƒ } t d „  | Dƒ ƒ |  _ d  S(   Nc         s  s   |  ] } t  | ƒ Vq d  S(   N(   R   (   RI   Rh   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pys	   <genexpr>‡  s    (   R   R   Ri   t   index_together(   R   R   Rt   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   „  s    	c         C  s   |  j  j ƒ  S(   N(   R   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   ‰  s    c         C  s-   i |  j  d 6|  j d 6} |  j j g  | f S(   Nu   nameu   index_together(   R   Rt   R   R   (   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR     s    
	c         C  s@   | j  | |  j f } |  j | j |  j <| j | |  j ƒ d  S(   N(   R   R   Rt   R
   Rk   RQ   (   R   R   R   Rl   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   ˜  s    c         C  sŒ   | j  j | |  j ƒ } |  j | j j | ƒ rˆ | j  j | |  j ƒ } | j | t | j |  j	 t
 ƒ  ƒ t | j |  j	 t
 ƒ  ƒ ƒ n  d  S(   N(   R   R   R   R    R!   R"   t   alter_index_togetherRn   RL   Rk   Ri   (   R   R   R$   R%   R&   R^   R_   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR(     s    c         C  s   |  j  | | | | ƒ S(   N(   R(   (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR*   §  s    c         C  s   | j  ƒ  |  j k S(   N(   R   R   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR9   ª  s    c           s9   |  j  | | ƒ o8 |  j p8 t ‡  f d †  |  j Dƒ ƒ S(   Nc         3  s   |  ] } ˆ  | k Vq d  S(   N(    (   RI   Ro   (   R   (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pys	   <genexpr>²  s    (   R9   Rt   Rp   (   R   RO   R   R   (    (   R   st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyRq   ­  s    
c         C  s&   d |  j  |  j t |  j p d ƒ f S(   Nu"   Alter %s for %s (%s constraint(s))u    (   Rk   R   Rr   Rt   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR-   ¶  s    N(   R   R:   R;   Rk   R   R   R   R   R   R(   R*   R=   R9   Rq   R-   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyRs   }  s   				
		t   AlterOrderWithRespectToc           B  sk   e  Z d  Z d „  Z e d „  ƒ Z d „  Z d „  Z d „  Z d „  Z	 d
 d „ Z d
 d „ Z d	 „  Z RS(   uD   
    Represents a change with the order_with_respect_to option.
    c         C  s   | |  _  | |  _ d  S(   N(   R   t   order_with_respect_to(   R   R   Rw   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   ¿  s    	c         C  s   |  j  j ƒ  S(   N(   R   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   Ã  s    c         C  s-   i |  j  d 6|  j d 6} |  j j g  | f S(   Nu   nameu   order_with_respect_to(   R   Rw   R   R   (   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   Ç  s    
	c         C  s=   | j  | |  j f } |  j | j d <| j | |  j ƒ d  S(   Nu   order_with_respect_to(   R   R   Rw   R
   RQ   (   R   R   R   Rl   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   Ò  s    c         C  sÝ   | j  j | |  j ƒ } |  j | j j | ƒ rÙ | j  j | |  j ƒ } | j j r€ | j j r€ | j | | j j	 d ƒ ƒ qÙ | j j rÙ | j j rÙ | j j	 d ƒ } | j
 ƒ  sÃ d | _ n  | j | | ƒ qÙ n  d  S(   Nu   _orderi    (   R   R   R   R    R!   R"   RL   Rw   t   remove_fieldRY   t   has_defaultt   defaultt	   add_field(   R   R   R$   R%   R&   t   to_modelt
   from_modelR7   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR(   ×  s    c         C  s   |  j  | | | | ƒ d  S(   N(   R(   (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR*   é  s    c         C  s   | j  ƒ  |  j k S(   N(   R   R   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR9   ì  s    c         C  s.   |  j  | | ƒ o- |  j d  k p- | |  j k S(   N(   R9   Rw   R=   (   R   RO   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyRq   ï  s    c         C  s   d |  j  |  j f S(   Nu%   Set order_with_respect_to on %s to %s(   R   Rw   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR-   ø  s    N(   R   R:   R;   R   R   R   R   R   R(   R*   R=   R9   Rq   R-   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyRv   º  s   						t   AlterModelOptionsc           B  s}   e  Z d  Z d d d d d d d d g Z d	 „  Z e d
 „  ƒ Z d „  Z d „  Z d „  Z	 d „  Z
 d d „ Z d „  Z RS(   u²   
    Sets new model options that don't directly affect the database schema
    (like verbose_name, permissions, ordering). Python code in migrations
    may still need them.
    u   get_latest_byu   managedu   orderingu   permissionsu   default_permissionsu   select_on_saveu   verbose_nameu   verbose_name_pluralc         C  s   | |  _  | |  _ d  S(   N(   R   R
   (   R   R   R
   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR     s    	c         C  s   |  j  j ƒ  S(   N(   R   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR     s    c         C  s-   i |  j  d 6|  j d 6} |  j j g  | f S(   Nu   nameu   options(   R   R
   R   R   (   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR     s    
	c         C  s‘   | j  | |  j f } t | j ƒ | _ | j j |  j ƒ x< |  j D]1 } | |  j k rE | | j k rE | j | =qE qE W| j | |  j ƒ d  S(   N(   R   R   R   R
   t   updatet   ALTER_OPTION_KEYSRQ   (   R   R   R   Rl   t   key(    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   "  s    c         C  s   d  S(   N(    (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR(   +  s    c         C  s   d  S(   N(    (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR*   .  s    c         C  s   | j  ƒ  |  j k S(   N(   R   R   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR9   1  s    c         C  s   d |  j  f S(   Nu   Change Meta options on %s(   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR-   4  s    N(   R   R:   R;   R€   R   R   R   R   R   R(   R*   R=   R9   R-   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR~   ü  s"   							t   AlterModelManagersc           B  sh   e  Z d  Z d g Z d „  Z e d „  ƒ Z d „  Z d „  Z d „  Z	 d „  Z
 d
 d „ Z d	 „  Z RS(   u%   
    Alters the model's managers
    u   managersc         C  s   | |  _  | |  _ d  S(   N(   R   R   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   ?  s    	c         C  s   |  j  j ƒ  S(   N(   R   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   C  s    c         C  s   |  j  j |  j |  j g i  f S(   N(   R   R   R   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   G  s    	c         C  s?   | j  | |  j f } t |  j ƒ | _ | j | |  j ƒ d  S(   N(   R   R   R   R   RQ   (   R   R   R   Rl   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR   N  s    c         C  s   d  S(   N(    (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR(   S  s    c         C  s   d  S(   N(    (   R   R   R$   R%   R&   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR*   V  s    c         C  s   | j  ƒ  |  j k S(   N(   R   R   (   R   R   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR9   Y  s    c         C  s   d |  j  f S(   Nu   Change managers on %s(   R   (   R   (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR-   \  s    N(   R   R:   R;   R<   R   R   R   R   R   R(   R*   R=   R9   R-   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyR‚   8  s   						N(   t
   __future__R    t	   django.dbR   t$   django.db.migrations.operations.baseR   t   django.db.migrations.stateR   t   django.db.models.optionsR   t   django.utilsR   t   django.utils.functionalR   R   R>   R@   Re   Rg   Rs   Rv   R~   R‚   (    (    (    st   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/migrations/operations/models.pyt   <module>   s   L*‡8==B<