Skip to content
Snippets Groups Projects

Resolve "Show invitation code when existing person without email is invited, otherwise show that email was send"

1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -597,6 +597,7 @@ class AccountRegisterForm(SignupForm, ExtensibleForm):
if person:
available_fields = [field.name for field in Person._meta.get_fields()]
self.fields["email2"].initial = person.email
for field in self.fields:
if field in available_fields and getattr(person, field):
self.fields[field].disabled = True
Loading