diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2019-03-30 01:49:44 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-03-29 21:50:28 -0400 |
| commit | 5237da3416aa4db47b396e26238db9fdac121c24 (patch) | |
| tree | 4d42c8db1a79f0d2e5e0db500143dcf61ce514ac /django | |
| parent | 2fb602f58181fa07e416474a35fef1945a6f8df3 (diff) | |
[2.2.x] Removed unnecessary /static from links to PostgreSQL docs.
Backport of 198a2a9381a415f76c3170753270f5087ce4475a from master.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/postgresql/operations.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index b1b83861c1..66e5482be6 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -18,7 +18,7 @@ class DatabaseOperations(BaseDatabaseOperations): if internal_type in ("GenericIPAddressField", "IPAddressField", "TimeField", "UUIDField"): # PostgreSQL will resolve a union as type 'text' if input types are # 'unknown'. - # https://www.postgresql.org/docs/current/static/typeconv-union-case.html + # https://www.postgresql.org/docs/current/typeconv-union-case.html # These fields cannot be implicitly cast back in the default # PostgreSQL configuration so we need to explicitly cast them. # We must also remove components of the type within brackets: @@ -27,7 +27,7 @@ class DatabaseOperations(BaseDatabaseOperations): return '%s' def date_extract_sql(self, lookup_type, field_name): - # https://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT + # https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT if lookup_type == 'week_day': # For consistency across backends, we return Sunday=1, Saturday=7. return "EXTRACT('dow' FROM %s) + 1" % field_name @@ -37,7 +37,7 @@ class DatabaseOperations(BaseDatabaseOperations): return "EXTRACT('%s' FROM %s)" % (lookup_type, field_name) def date_trunc_sql(self, lookup_type, field_name): - # https://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC + # https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC return "DATE_TRUNC('%s', %s)" % (lookup_type, field_name) def _convert_field_to_tz(self, field_name, tzname): @@ -59,7 +59,7 @@ class DatabaseOperations(BaseDatabaseOperations): def datetime_trunc_sql(self, lookup_type, field_name, tzname): field_name = self._convert_field_to_tz(field_name, tzname) - # https://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC + # https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC return "DATE_TRUNC('%s', %s)" % (lookup_type, field_name) def time_trunc_sql(self, lookup_type, field_name): |
