KeyError at /events/team/albania/add/

Bug #509986 reported by Thomas Bechtold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LoCo Team Portal
Fix Released
Medium
Thomas Bechtold

Bug Description

When i try to add a new event and only insert a date (but no time), i got a key error:

KeyError at /events/team/albania/add/

date_begin

Request Method: POST
Request URL: http://127.0.0.1:8000/events/team/albania/add/
Exception Type: KeyError
Exception Value:

date_begin

Exception Location: /home/tom/devel/python/loco-directory/loco_directory/events/forms.py in clean, line 35
Python Executable: /usr/bin/python
Python Version: 2.6.4
Python Path: ['/home/tom/devel/python/loco-directory/loco_directory', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']
Server time: Wed, 20 Jan 2010 07:07:02 +0000

Related branches

Revision history for this message
Thomas Bechtold (toabctl) wrote :

and if i insert just "12" to time, i got the same key error.

Revision history for this message
Thomas Bechtold (toabctl) wrote :

if i insert "12:00" i got no key error.

Revision history for this message
Thomas Bechtold (toabctl) wrote :

This has something to do with the new clean() in events/forms.py . if i comment out the following, all works fine:

#def clean(self):
    # cleaned_data = super(BaseEventForm, self).clean()
    # if cleaned_data['date_begin'] > cleaned_data['date_end']:
    # self._errors['date_end'] = [u'Events can not end before they start.']

    # return cleaned_data

Changed in loco-directory:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Thomas Bechtold (thomasbechtold)
Changed in loco-directory:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.