Skip to content

Commit

Permalink
Merge branch '5343-upgrade-django-in-mitxonline' of https://github.co…
Browse files Browse the repository at this point in the history
…m/mitodl/mitxonline into 5343-upgrade-django-in-mitxonline
  • Loading branch information
cp-at-mit committed Sep 10, 2024
2 parents efdb819 + 5044d6d commit 488b5f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion authentication/middleware.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Authentication middleware"""

from urllib.parse import quote

from django.shortcuts import redirect
from social_core.exceptions import SocialAuthBaseException
from social_django.middleware import SocialAuthExceptionMiddleware
from urllib.parse import quote


class SocialAuthExceptionRedirectMiddleware(SocialAuthExceptionMiddleware):
Expand Down
2 changes: 1 addition & 1 deletion ecommerce/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class BaseOrderAdmin(fsm.FlowAdminMixin, TimestampedModelAdmin):
readonly_fields = ["reference_number"]
flow_state = OrderFlow.state

def get_transition_fields(self, request, obj, slug): # noqa: ARG002
def get_transition_fields(self, request, obj, slug): # noqa: ARG002
return ["state"]

def get_object_flow(self, request, obj):
Expand Down
2 changes: 1 addition & 1 deletion ecommerce/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def _get_order_state(self):
return self.order.state

@state.on_success()
def _on_transition_success(self, descriptor, source, target, **kwargs): # noqa: ARG002
def _on_transition_success(self, descriptor, source, target, **kwargs): # noqa: ARG002
self.order.save()

@state.transition(source=State.ANY, target=OrderStatus.CANCELED)
Expand Down

0 comments on commit 488b5f8

Please sign in to comment.