From 49c97b01f25be1831eedf7c615849bcb08142ea5 Mon Sep 17 00:00:00 2001 From: melinath Date: Tue, 15 Jun 2010 14:05:31 -0400 Subject: [PATCH] Added File unicode. --- models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models.py b/models.py index 464b3b5..26de321 100644 --- a/models.py +++ b/models.py @@ -290,6 +290,9 @@ 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): -- 2.20.1