mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-05 21:23:57 +02:00
Use media str method for admin
This commit is contained in:
@ -63,8 +63,10 @@ class Media(models.Model):
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.title) + ' - ' + str(self.subtitle) \
|
||||
+ ' - ' + str(self.authors.all().first())
|
||||
if self.subtitle:
|
||||
return "{} : {}".format(self.title, self.subtitle)
|
||||
else:
|
||||
return self.title
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("medium")
|
||||
|
Reference in New Issue
Block a user