From 2048122c5ccb4425b2a6352eb94bf030c164d9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Mon, 8 Jul 2024 13:45:07 +0200 Subject: [PATCH] make StepsHelper iterable fixes #275 --- formtools/wizard/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/formtools/wizard/views.py b/formtools/wizard/views.py index aad0bdf..10c5809 100644 --- a/formtools/wizard/views.py +++ b/formtools/wizard/views.py @@ -43,6 +43,9 @@ def __len__(self): def __repr__(self): return f'' + def __iter(self): + return iter(self.all) + @property def all(self): "Returns the names of all steps/forms."