]> git.parisson.com Git - teleforma.git/commitdiff
deactivate registered user
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 8 Feb 2015 22:01:23 +0000 (23:01 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 8 Feb 2015 22:01:23 +0000 (23:01 +0100)
teleforma/views/crfpa.py

index fb2024427f2af142301aa5c726fbe1b3742e469e..208dd159b1745e5a21233f109c430723f96e7028 100644 (file)
@@ -374,5 +374,6 @@ class UserAddView(CreateWithInlinesView):
         messages.info(self.request, _("You have successfully register your account."))
         user = form.save()
         user.username = get_unique_username(user.first_name, user.last_name)
+        user.is_active = False
         user.save()
         return super(UserAddView, self).forms_valid(form, inlines)