From 5f12708dde05c6d6fc4cc089c6c93b67120b8f38 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 21 Oct 2012 22:05:26 -0400 Subject: 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 --- app/projects/models/gifs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/projects/models') 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) -- cgit v1.2.3-70-g09d2