Commit dc0fd302 by Guba Sándor

activity: added pk to the ActivityInProgress exception

parent 6c725c6d
...@@ -41,8 +41,9 @@ class ActivityInProgressError(Exception): ...@@ -41,8 +41,9 @@ class ActivityInProgressError(Exception):
def __init__(self, activity, message=None): def __init__(self, activity, message=None):
if message is None: if message is None:
message = ("Another activity is currently in progress: '%s'." message = ("Another activity is currently in progress: '%s' "
% activity.activity_code) "(%s)."
% (activity.activity_code,
Exception.__init__(self, message) 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