Hi Tim,
> lEvent = Event(request.POST)
Are you sure it's not that line causing trouble ?
--
David
On 21-Feb-08, at 5:16 PM, Tim Sawyer wrote:
I'm not sure I understand what I'm doing here. I'm trying to create
an Event
object from the data in a form (a simple html form, not a django
f
I think we'd need to see your Event model class too. It really would
be a good idea to take advantage of the validation from doing this as
a django form, just passing in POST is dangerous. It would also
abstract the whole datetime handling issue for you.
--~--~-~--~~~
I'm not sure I understand what I'm doing here. I'm trying to create an Event
object from the data in a form (a simple html form, not a django form).
I want to do this:
lDay = int(request.POST['DayNo'])
lMonth = int(request.POST['MonthNo'])
lYear = int(request.POST['YearNo'])
lE
3 matches
Mail list logo