Skip to content

Commit

Permalink
make StepsHelper iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdoc authored Jul 8, 2024
1 parent b31df3c commit 2048122
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions formtools/wizard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def __len__(self):
def __repr__(self):
return f'<StepsHelper for {self._wizard} (steps: {self.all})>'

def __iter(self):
return iter(self.all)

@property
def all(self):
"Returns the names of all steps/forms."
Expand Down

0 comments on commit 2048122

Please sign in to comment.