{"action":"closed","issue":{"url":"https://api.github.com/repos/azavea/nyc-trees/issues/1434","labels_url":"https://api.github.com/repos/azavea/nyc-trees/issues/1434/labels{/name}","comments_url":"https://api.github.com/repos/azavea/nyc-trees/issues/1434/comments","events_url":"https://api.github.com/repos/azavea/nyc-trees/issues/1434/events","html_url":"https://github.com/azavea/nyc-trees/issues/1434","id":70528409,"number":1434,"title":"Administrator unable to add event because of invalid datetime comparison","user":{"login":"hectcastro","id":43639,"avatar_url":"https://avatars.githubusercontent.com/u/43639?v=3","gravatar_id":"","url":"https://api.github.com/users/hectcastro","html_url":"https://github.com/hectcastro","followers_url":"https://api.github.com/users/hectcastro/followers","following_url":"https://api.github.com/users/hectcastro/following{/other_user}","gists_url":"https://api.github.com/users/hectcastro/gists{/gist_id}","starred_url":"https://api.github.com/users/hectcastro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectcastro/subscriptions","organizations_url":"https://api.github.com/users/hectcastro/orgs","repos_url":"https://api.github.com/users/hectcastro/repos","events_url":"https://api.github.com/users/hectcastro/events{/privacy}","received_events_url":"https://api.github.com/users/hectcastro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/azavea/nyc-trees/labels/+","name":"+","color":"000000"},{"url":"https://api.github.com/repos/azavea/nyc-trees/labels/can't%20reproduce","name":"can't reproduce","color":"FFFFFF"}],"state":"closed","locked":false,"assignee":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/azavea/nyc-trees/milestones/10","html_url":"https://github.com/azavea/nyc-trees/milestones/2015-05-07","labels_url":"https://api.github.com/repos/azavea/nyc-trees/milestones/10/labels","id":1079026,"number":10,"title":"2015-05-07","description":"","creator":{"login":"jwalgran","id":17363,"avatar_url":"https://avatars.githubusercontent.com/u/17363?v=3","gravatar_id":"","url":"https://api.github.com/users/jwalgran","html_url":"https://github.com/jwalgran","followers_url":"https://api.github.com/users/jwalgran/followers","following_url":"https://api.github.com/users/jwalgran/following{/other_user}","gists_url":"https://api.github.com/users/jwalgran/gists{/gist_id}","starred_url":"https://api.github.com/users/jwalgran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwalgran/subscriptions","organizations_url":"https://api.github.com/users/jwalgran/orgs","repos_url":"https://api.github.com/users/jwalgran/repos","events_url":"https://api.github.com/users/jwalgran/events{/privacy}","received_events_url":"https://api.github.com/users/jwalgran/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":60,"state":"open","created_at":"2015-04-22T14:49:47Z","updated_at":"2015-05-07T14:19:08Z","due_on":"2015-05-07T07:00:00Z","closed_at":null},"comments":1,"created_at":"2015-04-23T22:26:36Z","updated_at":"2015-05-07T14:19:09Z","closed_at":"2015-05-07T14:19:08Z","body":"Relevant traceback:\r\n\r\n```\r\nInternal Server Error: /admin/event/event/add/\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py\", line 111, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py\", line 583, in wrapper\r\n    return self.admin_site.admin_view(view)(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py\", line 105, in _wrapped_view\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py\", line 52, in _wrapped_view_func\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py\", line 206, in inner\r\n    return view(request, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py\", line 1453, in add_view\r\n    return self.changeform_view(request, None, form_url, extra_context)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py\", line 29, in _wrapper\r\n    return bound_func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py\", line 105, in _wrapped_view\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py\", line 25, in bound_func\r\n    return func.__get__(self, type(self))(*args2, **kwargs2)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/transaction.py\", line 394, in inner\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py\", line 1396, in changeform_view\r\n    if form.is_valid():\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/forms/forms.py\", line 162, in is_valid\r\n    return self.is_bound and not bool(self.errors)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/forms/forms.py\", line 154, in errors\r\n    self.full_clean()\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/forms/forms.py\", line 355, in full_clean\r\n    self._post_clean()\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/forms/models.py\", line 422, in _post_clean\r\n    self.instance.full_clean(exclude=exclude, validate_unique=False)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/base.py\", line 997, in full_clean\r\n    self.clean()\r\n  File \"/opt/app/apps/event/models.py\", line 69, in clean\r\n    if self.begins_at > self.ends_at:\r\nTypeError: can't compare datetime.datetime to NoneType\r\n```"}}