#31221: HStoreField returns str instead of dict during tests.
------------------------------------+--------------------------------------
Reporter: Michael Mulholland | Owner: (none)
Type: Bug | Status: closed
Component: contrib.postgres | Version: dev
Severity: Normal | Resolution: invalid
Keywords: hstore | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Comment (by Dylan Young):
FYI for those still encountering this issue, this seems to be connected to
the caching in `django.contrib.postgres.signals.get_hstore_oids`.
Basically it's caching the oids from the production DB before it starts
running tests, so the registration call when the testing DB is created is
registering the wrong OIDs as hstore fields.
Still probably a configuration issue (haven't tracked down the cause yet),
but hopefully this helps narrow it down for those coming to this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/31221#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701814546c668-6c242eb0-4923-42ad-8b5b-5594be1b6eac-000000%40eu-central-1.amazonses.com.