aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn')
-rw-r--r--python/Dawn/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index 12a943d0..fae7914a 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -62,7 +62,7 @@ def trade_manage(tradeid):
if tradeid:
trade.ticket = old_ticket_name
else:
- if old_ticket_name:
+ if tradeid and old_ticket_name:
trade.ticket = bump_rev(old_ticket_name)
else:
trade.ticket = "{0} {1}.pdf".format(str(trade.trade_date),