]> git.parisson.com Git - teleforma.git/commitdiff
fix no seminar price
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 17 Jun 2013 15:12:45 +0000 (17:12 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 17 Jun 2013 15:12:45 +0000 (17:12 +0200)
teleforma/templatetags/teleforma_tags.py

index d3ff6bb4fc793a056e6df4994a8d759b166cd7fc..cff37199bbf8ff003686054760e455fb9094ffa6 100644 (file)
@@ -314,4 +314,7 @@ def untreated_answer_count():
 
 @register.filter
 def integer(value):
-    return int(value)
\ No newline at end of file
+    if isinstance(value, str):
+        return int(value)
+    else:
+        return ''