Set is_active for new participants to True.
This commit is contained in:
parent
a6c220ca02
commit
07a682c436
@ -32,7 +32,7 @@ class UserNewForm(ModelForm, CssClassMixin):
|
|||||||
first_name = CharField(label=_("First name"))
|
first_name = CharField(label=_("First name"))
|
||||||
last_name = CharField(label=_("Last name"))
|
last_name = CharField(label=_("Last name"))
|
||||||
groups = ModelMultipleChoiceField(queryset=Group.objects.all(), label=_("User groups"), required=False)
|
groups = ModelMultipleChoiceField(queryset=Group.objects.all(), label=_("User groups"), required=False)
|
||||||
is_active = BooleanField(label=_("Active"), required=False)
|
is_active = BooleanField(label=_("Active"), required=False, initial=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = User
|
model = User
|
||||||
|
Loading…
Reference in New Issue
Block a user