Translated photoalbum model fields.

This commit is contained in:
2020-10-11 02:23:51 +02:00
parent 52f9638d74
commit dd07cbd57d
3 changed files with 22 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
from django.db import models
from django.utils.translation import ugettext_lazy as _
from lostplaces.models.place import PlaceAsset
@@ -7,8 +8,14 @@ class ExternalLink(PlaceAsset):
class Meta:
abstract = True
url = models.URLField(max_length=200)
label = models.CharField(max_length=100)
url = models.URLField(
max_length=200,
verbose_name=_('URL')
)
label = models.CharField(
max_length=100,
verbose_name=_('link text')
)
class PhotoAlbum(ExternalLink):
pass