On Fri, Dec 4, 2009 at 4:48 AM, Max Battcher wrote:
> Continuation wrote:
>> if form.is_valid():
>> object = form.save(commit=False)
>> delta = datetime.timedelta(days=object.days_difference)
>> object.end = object.start + delta
>> object.save()
>>
>> But I got the error:
>> type o
Continuation wrote:
> if form.is_valid():
> object = form.save(commit=False)
> delta = datetime.timedelta(days=object.days_difference)
> object.end = object.start + delta
> object.save()
>
> But I got the error:
> type object 'datetime.datetime' has no attribute 'timedelta'
This s
2 matches
Mail list logo