o
     i                     @   s2   d dl mZ dd Zdd ZG dd dejZdS )	    )
migrationsc                 C   sH   |  dd}|jjddd}| dkr"|dd jdd dS dS )	z+Ensure only one prompt is marked as defaultcalls
CallPromptT)
is_defaultz-created_at   NF)	get_modelobjectsfilterorder_bycountupdate)appsschema_editorr   default_prompts r   F/var/www/html/philips/calls/migrations/0005_cleanup_default_prompts.pycleanup_default_prompts   s
   r   c                 C   s   dS )zReverse migration - do nothingNr   )r   r   r   r   r   reverse_cleanup   s   r   c                   @   s    e Zd ZdgZeeegZdS )	Migration)r   #0004_callprompt_is_default_and_moreN)	__name__
__module____qualname__dependenciesr   	RunPythonr   r   
operationsr   r   r   r   r      s
    
r   N)	django.dbr   r   r   r   r   r   r   r   <module>   s   