mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #23820 -- Supported per-database time zone.
The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error.
This commit is contained in:
@@ -201,6 +201,10 @@ Management Commands
|
||||
Models
|
||||
^^^^^^
|
||||
|
||||
* Database configuration gained a :setting:`TIME_ZONE <DATABASE-TIME_ZONE>`
|
||||
option for interacting with databases that store datetimes in local time and
|
||||
don't support time zones when :setting:`USE_TZ` is ``True``.
|
||||
|
||||
* Added the :meth:`RelatedManager.set()
|
||||
<django.db.models.fields.related.RelatedManager.set()>` method to the related
|
||||
managers created by ``ForeignKey``, ``GenericForeignKey``, and
|
||||
|
||||
Reference in New Issue
Block a user