diff --git a/beat/web/ui/registration/forms.py b/beat/web/ui/registration/forms.py index 26e7390d476623591fe7e3fe6d59f6ca5cd72211..14409816b8369b740c9ad41d6d530994d1fb924d 100644 --- a/beat/web/ui/registration/forms.py +++ b/beat/web/ui/registration/forms.py @@ -107,6 +107,8 @@ class RegistrationForm(forms.Form): """ try: user = User.objects.get(username__iexact=self.cleaned_data['godfather']) + if user.profile.status == Profile.BLOCKED: + raise forms.ValidationError(_(u'This user is not a valid godfather. Please choose another.')) except User.DoesNotExist: raise forms.ValidationError(_(u'This godfather username does not exist. Please choose another.'))