gault-millau/apps/gallery/models.py
2019-08-27 13:02:54 +03:00

17 lines
405 B
Python

from django.utils.translation import gettext_lazy as _
from utils.models import ProjectBaseMixin, ImageMixin
class Gallery(ProjectBaseMixin, ImageMixin):
"""Gallery model."""
class Meta:
"""Meta class."""
verbose_name = _('Gallery')
verbose_name_plural = _('Galleries')
def __str__(self):
"""String representation"""
return str(self.get_image_url)