Modified views to pass forms
This commit is contained in:
parent
f182bbde3f
commit
7c1901e72b
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ class UserEntryForm(Form):
|
|||
|
||||
# Verify that email domain matches
|
||||
if ('@slps.org' not in email):
|
||||
raise ValidationError("Please use your school email")
|
||||
raise ValidationError("Please use your school email.")
|
||||
# Verify that the email is unique
|
||||
if UserEntry.objects.filter(email=email).exists():
|
||||
raise ValidationError(
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class EntryCreateView(SessionWizardView):
|
|||
def done(self, form_list, **kwargs):
|
||||
UserEntry.objects.create(**self.get_all_cleaned_data())
|
||||
|
||||
messages.success(self.request, 'Your entry has been submitted')
|
||||
messages.success(self.request, 'Your signup has been submitted.')
|
||||
return redirect('housewars:signup')
|
||||
|
||||
def get_success_url(self):
|
||||
|
|
|
|||
Reference in a new issue