1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #31212 -- Updated psycopg links to HTTPS and new location.

This commit is contained in:
Jon Dufresne
2020-01-28 16:58:39 -08:00
committed by Mariusz Felisiak
parent 32166a9f7c
commit 958977f662
7 changed files with 9 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
"""
PostgreSQL database backend for Django.
Requires psycopg 2: http://initd.org/projects/psycopg2
Requires psycopg 2: https://www.psycopg.org/
"""
import asyncio

View File

@@ -230,7 +230,7 @@ class DatabaseOperations(BaseDatabaseOperations):
return ['DISTINCT'], []
def last_executed_query(self, cursor, sql, params):
# http://initd.org/psycopg/docs/cursor.html#cursor.query
# https://www.psycopg.org/docs/cursor.html#cursor.query
# The query attribute is a Psycopg extension to the DB API 2.0.
if cursor.query is not None:
return cursor.query.decode()