git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added File unicode.
[philo.git]
/
models.py
diff --git
a/models.py
b/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):