Added File unicode.
[philo.git] / models.py
index 464b3b5..26de321 100644 (file)
--- 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
                response = HttpResponse(wrapper, content_type=self.mimetype)
                response['Content-Length'] = self.file.size
                return response
+       
+       def __unicode__(self):
+               return self.file
 
 
 class Template(TreeModel):
 
 
 class Template(TreeModel):