From 5afeec17bc8115d869b97a78f0f032c91f1583a8 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 27 May 2015 18:21:54 +0200 Subject: [PATCH] fix displaying custom user attributes in forms (#7386) --- src/authentic2/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/forms.py b/src/authentic2/forms.py index 5d1276f..8104908 100644 --- a/src/authentic2/forms.py +++ b/src/authentic2/forms.py @@ -99,7 +99,7 @@ def modelform_factory(model, **kwargs): bases = (BaseUserForm,) attributes = models.Attribute.objects.all() for attribute in attributes: - if fields and attribute.name not in fields: + if attribute.name not in fields: continue d[attribute.name] = attribute.get_form_field() for field in app_settings.A2_REQUIRED_FIELDS: -- 2.1.4