-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trans_func
mixin does not handle AttributeError
when passing in request
#56
Comments
…rror` when passing in `request`
Cool, thanks for the report. Yes, would certainly accept a PR that fixes this. |
I tried a patch where however then we get a transition not allowed error: https://github.com/peterfarrell/django-fsm-admin/tree/peterfarrell-patch-56 The error goes away if we take out the |
@Nagyman Closing this issue. We discovered it has to do with the why Django FSM Log's decorate deleted the |
If anyone stumble upon this, you can see the issue we filed with Django FSM Log here: |
Thanks for the investigation @peterfarrell |
When using Django FSM Admin with Django FSM Log on Python 3.4, the call to
trans_func(request=request, by=request.user)
fails with anAttributeError
on the the kwargrequest
and the try/except is only looking forTypeError
. The error reads as follows wheremy_transition
is the name of the transition method:It appears that if we remove the @fsm_log_by decorator then everything works. This is strange because we have several other transitions that have logging that works.
From https://github.com/gadventures/django-fsm-admin/blob/master/fsm_admin/mixins.py#L162-L172
The text was updated successfully, but these errors were encountered: