lostplaces-backend/django_lostplaces/lostplaces/models/external_links.py
2022-09-17 18:07:29 +02:00

21 lines
430 B
Python

from django.db import models
from django.utils.translation import gettext as _
from lostplaces.models.place import PlaceAsset
class ExternalLink(PlaceAsset):
class Meta:
abstract = True
url = models.URLField(
max_length=200,
verbose_name=_('URL')
)
label = models.CharField(
max_length=100,
verbose_name=_('link text')
)
class PhotoAlbum(ExternalLink):
pass