Improve the date localte handling of the DetailView and DetailForm.

This commit is contained in:
Roberto Rosario
2016-03-09 23:22:31 -04:00
parent 216673c691
commit 2c9a01bdfc
4 changed files with 27 additions and 27 deletions

View File

@@ -71,10 +71,6 @@ def get_descriptor(file_input, read=True):
return file_input
def render_date_object(date_time_object):
return force_text(formats.localize(date_time_object, use_l10n=True))
def return_attrib(obj, attrib, arguments=None):
try:
if isinstance(attrib, types.FunctionType):