|
29
|
1 |
from django.db.backends.postgresql_psycopg2.base import * |
|
|
2 |
from django.db.backends.postgresql_psycopg2.base import DatabaseWrapper as Psycopg2DatabaseWrapper |
|
|
3 |
from django.contrib.gis.db.backends.postgis.creation import PostGISCreation |
|
|
4 |
from django.contrib.gis.db.backends.postgis.introspection import PostGISIntrospection |
|
|
5 |
from django.contrib.gis.db.backends.postgis.operations import PostGISOperations |
|
|
6 |
|
|
|
7 |
class DatabaseWrapper(Psycopg2DatabaseWrapper): |
|
|
8 |
def __init__(self, *args, **kwargs): |
|
|
9 |
super(DatabaseWrapper, self).__init__(*args, **kwargs) |
|
|
10 |
self.creation = PostGISCreation(self) |
|
|
11 |
self.ops = PostGISOperations(self) |
|
|
12 |
self.introspection = PostGISIntrospection(self) |