Clean up, fix, and improve templates around clipboard

This commit is contained in:
Skia
2016-12-13 01:24:23 +01:00
parent 0859648bd4
commit f594a99751
5 changed files with 30 additions and 7 deletions

View File

@ -649,6 +649,11 @@ class SithFile(models.Model):
from sas.models import Picture
return Picture.objects.filter(id=self.id).first()
@property
def as_album(self):
from sas.models import Album
return Album.objects.filter(id=self.id).first()
def __str__(self):
if self.is_folder:
return _("Folder: ") + self.name