
    wg                     l    d dl mZ d dlmZ d dlmZ  G d dej                  Z G d de          ZdS )	    )RichTextField)models)BaseFormatterPatternc                       e Zd Z ej        dd          Z ej        dd          Z edd          Z	 ej        dd	d
d
          Z
 ej        d
d
          Z G d d          Zd ZdS )Documentdocsu   Обложка)	upload_toverbose_namei,  u   Название)
max_lengthr
   i u   Содержаниеu   ЗагаловокT)r   r
   nullblank)r   r   c                       e Zd ZdZdZdZdS )Document.Meta	materialsu   Документu   ДокументыN)__name__
__module____qualname__	app_labelr
   verbose_name_plural     @/var/www/html/cms/infrastructure/persistence/models/materials.pyMetar      s         	)2r   r   c                     | j         S )N)title)selfs    r   __str__zDocument.__str__   s
    zr   N)r   r   r   r   
ImageFieldimage	CharFieldr   r   textname	SlugFieldslugr   r   r   r   r   r   r   	   s        F=MNNNEF:LMMME=F9OPPPD6s9MTX`deeeD6T222D3 3 3 3 3 3 3 3
    r   r   c                   b    e Zd Z ej        eej                  Z G d dej	                  Z	dS )DocumentFormatPattern)	on_deletec                       e Zd ZdZdS )DocumentFormatPattern.Metar   N)r   r   r   r   r   r   r   r   r)      s        			r   r   N)
r   r   r   r   
ForeignKeyr   CASCADEdocumentr   r   r   r   r   r&   r&      s[         v V^DDDH         #(          r   r&   N)	ckeditor.fieldsr   	django.dbr   8infrastructure.persistence.models.base_formater_patternsr   Modelr   r&   r   r   r   <module>r1      s    ) ) ) ) ) )           
    v|             0          r   