Fixed #2607 -- Fixed incorrect ordering of super() arguments in DateTimeAwareJSONEncoder. Thanks for the patch, dummy@habmalnefrage.de
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
33637e3b03
commit
e7424f0619
|
@ -48,4 +48,4 @@ class DateTimeAwareJSONEncoder(simplejson.JSONEncoder):
|
||||||
elif isinstance(o, datetime.time):
|
elif isinstance(o, datetime.time):
|
||||||
return o.strftime(self.TIME_FORMAT)
|
return o.strftime(self.TIME_FORMAT)
|
||||||
else:
|
else:
|
||||||
return super(self, DateTimeAwareJSONEncoder).default(o)
|
return super(DateTimeAwareJSONEncoder, self).default(o)
|
||||||
|
|
Loading…
Reference in New Issue