a
    Døgø  ã                   @   s0   d dl mZ d dlmZ d dlmZ dd„ ZdS )é    )Úsettings)ÚImproperlyConfigured)Úimport_stringc              	   C   s>   zt tt| ƒƒW S  ty8   td| tt| ƒf ƒ‚Y n0 dS )z1Return custom form class if defined and availablez.%s refers to a form '%s' that is not availableN)r   Úgetattrr   ÚImportErrorr   )Zform_setting© r   úT/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/site-packages/wagtail/utils/loading.pyÚget_custom_form   s    ÿÿr	   N)Zdjango.confr   Zdjango.core.exceptionsr   Zdjango.utils.module_loadingr   r	   r   r   r   r   Ú<module>   s   