Skip to content

Commit

Permalink
don't serialize kwargs in state transition log when they're not JSON …
Browse files Browse the repository at this point in the history
…serializable (2)
  • Loading branch information
Jonathan Slenders committed May 30, 2012
1 parent b018f64 commit 2776d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion states2/model_methods.py
Expand Up @@ -153,7 +153,7 @@ def make_transition(si_self, transition, user=None, **kwargs):
try:
serialized_kwargs = json.dumps(kwargs)
except TypeError:
serialized_kwargs = None
serialized_kwargs = json.dumps(None)

transition_log = _state_log_model.objects.create(
on=self,
Expand Down

0 comments on commit 2776d20

Please sign in to comment.