`timezone.UTC()` is called, but no such function is exported.
== solution
it seems that mapping timezone.UTC() ==> timezone.utc may be what is
desired
== how to reproduce
- send an ISO compliant datetime w/ UTC offset to a DateTimeField(), e.g.
`2017-05-30T17:17:21-07:00`
== stack
the pertinent part of the stack here reveals all:
File "/path/to/rest_framework/fields.py" in to_internal_value
1130. return self.enforce_timezone(parsed)
File "/path/to/rest_framework/fields.py" in enforce_timezone
1107. return timezone.make_naive(value, timezone.UTC())
Exception Type: AttributeError at /rest/v1/api/schedules
Exception Value: module 'django.utils.timezone' has no attribute 'UTC'
--
Ticket URL: <https://code.djangoproject.com/ticket/28245>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => wontfix
Comment:
whoops, wrong project :(
--
Ticket URL: <https://code.djangoproject.com/ticket/28245#comment:1>
* resolution: wontfix => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/28245#comment:2>