You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- from django.apps import AppConfig
- from django.db.backends.signals import connection_created
- from django.db.models import CharField, TextField
- from django.utils.translation import ugettext_lazy as _
-
- from .lookups import Unaccent
- 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)
- CharField.register_lookup(Unaccent)
- TextField.register_lookup(Unaccent)
|