Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: can't compare datetime.date to int #19

Open
garmoncheg opened this issue Nov 9, 2012 · 0 comments
Open

TypeError: can't compare datetime.date to int #19

garmoncheg opened this issue Nov 9, 2012 · 0 comments
Assignees

Comments

@garmoncheg
Copy link
Contributor

We are receiving this error once in a while on a tmsdemo host.

Traceback (most recent call last):

 File "/srv/www/tms/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/srv/www/tms/lib/python2.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
   return view_func(request, *args, **kwargs)

 File "/srv/www/tms/src/adlibre_tms/apps/reporting/views.py", line 27, in reports_detail
   if request.method == "POST" and form.is_valid():

 File "/srv/www/tms/lib/python2.6/site-packages/django/forms/forms.py", line 121, in is_valid
   return self.is_bound and not bool(self.errors)

 File "/srv/www/tms/lib/python2.6/site-packages/django/forms/forms.py", line 112, in _get_errors
   self.full_clean()

 File "/srv/www/tms/lib/python2.6/site-packages/django/forms/forms.py", line 268, in full_clean
   self._clean_form()

 File "/srv/www/tms/lib/python2.6/site-packages/django/forms/forms.py", line 296, in _clean_form
   self.cleaned_data = self.clean()

 File "/srv/www/tms/src/adlibre_tms/apps/tms/forms.py", line 156, in clean
   if date_start > date_end:

TypeError: can't compare datetime.date to int

with full paste here:
http://dpaste.com/827897/

@ghost ghost assigned garmoncheg Nov 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant