git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified the get_start and get_end methods to return datetimes if times are specified.
[philo.git]
/
contrib
/
waldo
/
forms.py
diff --git
a/contrib/waldo/forms.py
b/contrib/waldo/forms.py
index
6f2b59b
..
2ee64d0
100644
(file)
--- a/
contrib/waldo/forms.py
+++ b/
contrib/waldo/forms.py
@@
-72,8
+72,8
@@
class WaldoAuthenticationForm(AuthenticationForm):
ERROR_MESSAGE = _("Please enter a correct username and password. Note that both fields are case-sensitive.")
def clean(self):
ERROR_MESSAGE = _("Please enter a correct username and password. Note that both fields are case-sensitive.")
def clean(self):
- username = self.cleaned_data
['username']
- password = self.cleaned_data
['password']
+ username = self.cleaned_data
.get('username')
+ password = self.cleaned_data
.get('password')
message = self.ERROR_MESSAGE
if username and password:
message = self.ERROR_MESSAGE
if username and password: