From: Guillaume Pellerin Date: Fri, 7 Aug 2015 20:29:29 +0000 (+0200) Subject: bugfix X-Git-Tag: 1.1~185^2~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=aad420e33626be1cfa75bad365f73fa7b7895910;p=teleforma.git bugfix --- diff --git a/teleforma/exam/admin.py b/teleforma/exam/admin.py index de41b786..b048bdb5 100644 --- a/teleforma/exam/admin.py +++ b/teleforma/exam/admin.py @@ -43,7 +43,8 @@ class ScriptAdmin(admin.ModelAdmin): def file_size(self, instance): if instance.file: - if os.path.exits(instance.file.path): + if os.path.exists(instance.file.path): + print instance.file.path return filesizeformat(os.stat(instance.file.path).st_size) else: return '0'