X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/dfbf63d1222f34b74ecbcdd301450abed416fe78..da63b5b1fdcd03f375ff6b40a1d022d4e8778801:/models.py?ds=inline diff --git a/models.py b/models.py index 0063c86..6be9951 100644 --- a/models.py +++ b/models.py @@ -283,6 +283,9 @@ class Redirect(Node): response = HttpResponseRedirect(self.target) response.status_code = self.status_code return response + + def __unicode__(self): + return self.slug class File(Node): @@ -295,9 +298,6 @@ class File(Node): response = HttpResponse(wrapper, content_type=self.mimetype) response['Content-Length'] = self.file.size return response - - def __unicode__(self): - return self.file class Template(TreeModel):