17 lines
418 B
Python
17 lines
418 B
Python
from django.db import models
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from utils.models import ImageMixin, ProjectBaseMixin
|
|
|
|
|
|
class Partner(ProjectBaseMixin, ImageMixin):
|
|
"""Partner model."""
|
|
url = models.URLField(verbose_name=_('Partner URL'))
|
|
|
|
class Meta:
|
|
verbose_name = _('partner')
|
|
verbose_name_plural = _('partners')
|
|
|
|
def __str__(self):
|
|
return f'{self.url}'
|