Commit dc0fd302 by Guba Sándor

activity: added pk to the ActivityInProgress exception

parent 6c725c6d
......@@ -41,8 +41,9 @@ class ActivityInProgressError(Exception):
def __init__(self, activity, message=None):
if message is None:
message = ("Another activity is currently in progress: '%s'."
% activity.activity_code)
message = ("Another activity is currently in progress: '%s' "
"(%s)."
% (activity.activity_code, activity.pk))
Exception.__init__(self, message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment