
    c*g                     p    d dl mZ d dl mZ  G d dej                        Z G d dej                        Zy)    )modelsc                   ^    e Zd Z ej                  d      Z ej                  d      Zd Zy)Artistd   
max_lengthc                     | j                   S Nnameselfs    </var/www/django-tutorial/music_catalogue/catalogue/models.py__str__zArtist.__str__
       yy    N)__name__
__module____qualname__r   	CharFieldr   countryr    r   r   r   r      s+    6s+Df#.Gr   r   c                   2   e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                         Z ej                  d      Z ej                  d      Z ej                  d      Z ej                  dd      Zd Zy	)
Albumalbums)	on_deleterelated_namer   r   2   T)blanknullc                     | j                   S r
   r   r   s    r   r   zAlbum.__str__   r   r   N)r   r   r   r   
ForeignKeyr   CASCADEartistr   r   	DateFieldrelease_dategenreproducerrecord_label	TextFieldcommentr   r   r   r   r   r      s    VvhWF6s+D#6##%LF+Ev3/H#6##s3LfT5Gr   r   N)	django.dbr   Modelr   r   r   r   r   <module>r.      s-     V\\ 
FLL 
r   