summaryrefslogtreecommitdiff
path: root/app/projects/models/gifs.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/projects/models/gifs.py')
-rw-r--r--app/projects/models/gifs.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/projects/models/gifs.py b/app/projects/models/gifs.py
index e20530b..25b8734 100644
--- a/app/projects/models/gifs.py
+++ b/app/projects/models/gifs.py
@@ -3,7 +3,7 @@ from django.db import models
def get_upload_path(self, filename):
- return "images/projects/gifs/%s/%s" %(datetime.datetime.today().strftime("%Y"), filename)
+ return "images/projects/gifs/%s/%s" % (datetime.datetime.today().strftime("%Y"), filename)
class AnimatedGif(models.Model):
@@ -18,8 +18,9 @@ class AnimatedGif(models.Model):
verbose_name_plural = "Animated Gifs"
app_label = 'projects'
ordering = ('-date_created',)
- # Returns the string representation of the model.
- def __unicode__(self):
+
+ def __str__(self):
return self.slug
+
def get_absolute_url(self):
- return '/projects/gifs/%s/' %(self.slug)
+ return '/projects/gifs/%s/' % (self.slug)