Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
139e2fb3
Commit
139e2fb3
authored
Apr 18, 2016
by
Matthew Rodgers
Committed by
David Haynes
Apr 26, 2016
Browse files
Updated Custom Date Validator Message
--'Date can't be before today' changed to 'Date must be after today'
parent
cbf7a067
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/forms.py
View file @
139e2fb3
...
@@ -80,7 +80,7 @@ class URLForm(forms.ModelForm):
...
@@ -80,7 +80,7 @@ class URLForm(forms.ModelForm):
if
value
>
timezone
.
now
():
if
value
>
timezone
.
now
():
return
return
else
:
else
:
raise
ValidationError
(
'Date
can
\'
t be before
today.'
)
raise
ValidationError
(
'Date
must be after
today.'
)
# Add a custom expiration choice.
# Add a custom expiration choice.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment