Begin SAS

This commit is contained in:
Skia committed 2016-11-23 11:38:01 +01:00
1 parent 0b068d3e92
commit d554a5ee8d
14 files changed
+178 -1

No files matched your search

+5
View File
@@ -584,6 +584,11 @@ class SithFile(models.Model):
else:
return super(SithFile, self).__getattribute__(attr)
@property
def as_picture(self):
from sas.models import Picture
return Picture.objects.filter(id=self.id).first()
def __str__(self):
if self.is_folder:
return _("Folder: ") + self.name