a
    Døgx  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )ÚBaseFieldDisplay)Úget_rendition_or_not_foundc                   @   s   e Zd ZdZdd„ ZdS )ÚImageDisplayzmax-400x400c                 C   s    | j d u rd S t| j | jƒ ¡ S )N)Úvaluer   Úrendition_specZimg_tag)ÚselfZparent_context© r   úX/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/site-packages/wagtail/images/components.pyÚrender_html   s    
zImageDisplay.render_htmlN)Ú__name__Ú
__module__Ú__qualname__r   r
   r   r   r   r	   r      s   r   N)Zwagtail.admin.ui.fieldsr   Zwagtail.images.shortcutsr   r   r   r   r   r	   Ú<module>   s   