Sorry, It was my mistake
This is correct
This is my full views.py:
from datetime import datetime, time, date, timedelta
class workLog(object):
def __init__(self, name, day, attTime, leaveTime):
self.name = name
self.day = day
self.attTime = attTime
So the error is somewhere here:
for att in attendance:
day = att[2].day
But I can't see where `attendance` is defined.
I suspect you'll have a similar error in
for leav in leavework:
day = leav[2].day
But also can't see where `leavework` is defined.
On Wed, May 21, 2014 at 10:24 PM, hito
Hello,
I have the errors in the following:
I don't know how can i to do ?
Request Method: GET Request URL: http://articlet/export_excel/ Django
Version: 1.6.2 Exception Type: AttributeError Exception Value:
'datetime.time' object has no attribute 'date'
Exception Location:
3 matches
Mail list logo