toastdriven/django-tastypie — pull request #957 by yarbelk (2013-06-09 18:22:26+00:00)
Title: Add setting to include timezone in serialized ISO datetimes

Add a setting TASTYPIE_DATETIME_FORMATTING_TIMEZONE, to include timezone
in the serialized format of datetimes. This defaults to False (prior
behaviour). If the datetime is naive, it is given the default timezone
of the django project.

Add tests to check that the default (False) setting isn't changed,
and that the formatting change happens when it is enabled.

This is a re-implementation of issue #445, which handles datetimes that
already have tzinfo.