U
    rfh                     @   s    d dl mZ G dd deZdS )    )DatabaseSchemaEditorc                   @   s   e Zd Zdd ZdS )r   c                 C   sP   | j   t|tr |dd}| j j j|}t|trLt|trL| }|S )N%z%%)	
connectionZensure_connection
isinstancestrreplace	converterescapebytesdecode)selfvaluequoted r   P/home/mars/bis/venv/lib/python3.8/site-packages/mysql/connector/django/schema.pyquote_value"   s    

z DatabaseSchemaEditor.quote_valueN)__name__
__module____qualname__r   r   r   r   r   r       s   r   N)Zdjango.db.backends.mysql.schemar   ZMySQLDatabaseSchemaEditorr   r   r   r   <module>   s   