diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 31e5b994cc..45c8bbefd8 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -1179,7 +1179,7 @@ def enforce_timezone(self, value): When `self.default_timezone` is `None`, always return naive datetimes. When `self.default_timezone` is not `None`, always return aware datetimes. """ - field_timezone = getattr(self, 'timezone', self.default_timezone()) + field_timezone = self.timezone if hasattr(self, 'timezone') else self.default_timezone() if field_timezone is not None: if timezone.is_aware(value):