summaryrefslogtreecommitdiff
path: root/app/photos/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-10-24 15:53:37 +0000
committerluxagraf <sng@luxagraf.net>2018-10-24 15:53:37 +0000
commit55b73c69e7faf079642d323985dd48b577615dc6 (patch)
tree3f18e4d65a6db291451457e5be43288a4aeb7a71 /app/photos/models.py
parent9d88527a997ced7e01b67bcfee6ba10666f77deb (diff)
fixed video inserts
Diffstat (limited to 'app/photos/models.py')
-rw-r--r--app/photos/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/photos/models.py b/app/photos/models.py
index 9f78ac9..eb4b55e 100644
--- a/app/photos/models.py
+++ b/app/photos/models.py
@@ -284,7 +284,10 @@ class LuxVideo(models.Model):
vimeo_url = models.CharField(null=True, blank=True, max_length=300)
def __str__(self):
- return self.title
+ if self.title:
+ return self.title
+ else:
+ return str(self.pk)
def get_type(self):
return str(self.__class__.__name__)