Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: updated method
Browse files Browse the repository at this point in the history
  • Loading branch information
zubair-ce07 committed Nov 13, 2023
1 parent b9a64c7 commit adfde3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecommerce/extensions/dashboard/offers/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ def _store_form_kwargs(self, form):
session_data[self._key()] = json_data
self.request.session.save()

def _fetch_form_kwargs(self, step_name=None):
def _fetch_form_kwargs(self):

if not step_name:
step_name = self.step_name
session_data = self.request.session.setdefault(self.wizard_name, {})
json_data = session_data.get(self._key(step_name), None)
json_data = session_data.get(self._key(self.step_name), None)
if json_data:
form_kwargs = json.loads(json_data)
form_kwargs['data']['site'] = Site.objects.get(pk=form_kwargs['data']['site_id'])
Expand Down

0 comments on commit adfde3d

Please sign in to comment.