summaryrefslogtreecommitdiff
path: root/app/projects/models
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-10-21 22:05:26 -0400
committerluxagraf <sng@luxagraf.net>2012-10-21 22:05:26 -0400
commit5f12708dde05c6d6fc4cc089c6c93b67120b8f38 (patch)
treef63606b4e90409f5e3f34b540d793b78bea1e792 /app/projects/models
parent665cc2293083879dbcbc6a56d174aca67f632767 (diff)
fixed two bugs, gif projs now get built and the archive list views for writing and photos check to see if the request is from the django client and adjust MEDIA_URL accordingly
Diffstat (limited to 'app/projects/models')
-rw-r--r--app/projects/models/gifs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/projects/models/gifs.py b/app/projects/models/gifs.py
index b6eb066..e20530b 100644
--- a/app/projects/models/gifs.py
+++ b/app/projects/models/gifs.py
@@ -21,4 +21,5 @@ class AnimatedGif(models.Model):
# Returns the string representation of the model.
def __unicode__(self):
return self.slug
-
+ def get_absolute_url(self):
+ return '/projects/gifs/%s/' %(self.slug)