diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-02-23 12:24:41 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-02-23 12:24:41 +0000 |
| commit | 156cdcf92decdf18a87a1229ba4ef8da1e6972ab (patch) | |
| tree | dd161e7e91ff4698bceebe64a47acba2abbf6cc7 /django/db/backends/postgresql/base.py | |
| parent | 6b2f125b80807231e0a216c0193089f3a40f7253 (diff) | |
Fixed #12912 -- Placed the psycopg1-backed ``postgresql`` database backend on the deprecation path.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql/base.py')
| -rw-r--r-- | django/db/backends/postgresql/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 5681311a65..5352e9bff6 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -102,6 +102,12 @@ class DatabaseWrapper(BaseDatabaseWrapper): def __init__(self, *args, **kwargs): super(DatabaseWrapper, self).__init__(*args, **kwargs) + import warnings + warnings.warn( + 'The ``postgres`` backend has been deprecated. Use ``postgres_psycopg2`` instead.', + PendingDeprecationWarning + ) + self.features = DatabaseFeatures() self.ops = DatabaseOperations(self) self.client = DatabaseClient(self) |
