diff options
author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-03-14 17:34:49 +0000 |
---|---|---|
committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-11-04 09:26:40 +0000 |
commit | 36f514f06553ef299001b4e9a5f63ec806a50581 (patch) | |
tree | 966c1b958c49cd266f76c385acb0a2bd330f7c10 /django/contrib/postgres/apps.py | |
parent | 5c517ec21839358249c6f17611abbf84661fb200 (diff) | |
download | django-36f514f06553ef299001b4e9a5f63ec806a50581.tar.gz |
Added HStoreField.
Thanks to `django-hstore` for inspiration in some areas, and many people
for reviews.
Diffstat (limited to 'django/contrib/postgres/apps.py')
-rw-r--r-- | django/contrib/postgres/apps.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/django/contrib/postgres/apps.py b/django/contrib/postgres/apps.py new file mode 100644 index 0000000000..f6fa263a84 --- /dev/null +++ b/django/contrib/postgres/apps.py @@ -0,0 +1,13 @@ +from django.apps import AppConfig +from django.db.backends.signals import connection_created +from django.utils.translation import ugettext_lazy as _ + +from .signals import register_hstore_handler + + +class PostgresConfig(AppConfig): + name = 'django.contrib.postgres' + verbose_name = _('PostgreSQL extensions') + + def ready(self): + connection_created.connect(register_hstore_handler) |