Changes between Version 1 and Version 2 of Ticket #31221, comment 1
- Timestamp:
- Jan 31, 2020, 3:21:06 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31221, comment 1
v1 v2 3 3 The latter is in charge of [https://github.com/django/django/blob/b9cf764be62e77b4777b3a75ec256f6209a57671/django/contrib/postgres/apps.py#L11-L28 connecting a signal receiver] that [https://github.com/django/django/blob/b9cf764be62e77b4777b3a75ec256f6209a57671/django/contrib/postgres/signals.py#L37-L43 registers] the necessary `psycopg2` adapters on connection creation that [https://www.psycopg.org/docs/extras.html#hstore-data-type turns the string provided by PostgreSQL into a Python dict]. 4 4 5 If that's the origin of your issue I suggest we re-purpose this ticket to add system checks to all `django.contrib.postgres .fields` that errors when a field is used but `self.model._meta.apps.get('postgres')` is missing.5 If that's the origin of your issue I suggest we re-purpose this ticket to add system checks to all `django.contrib.postgres` fields that errors when a field is used but `self.model._meta.apps.get('postgres')` is missing as I've been bitten by that in the best and remember helping a few forks with it since these fields were introduced.