diff --git a/docs/release_notes.rst b/docs/release_notes.rst index ba0de72..c828676 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -3,7 +3,8 @@ Release Notes v3.0.2 ------ -* Add `json_cursor` to handle django no longer automatically parsing json fields +* Add `json_cursor` context to handle Django3.1.1+ no longer automatically parsing json fields +* Adjusted query functionality also to handle jsonb columns correctly v3.0.1 ------ diff --git a/querybuilder/query.py b/querybuilder/query.py index 185512e..bd74ea5 100644 --- a/querybuilder/query.py +++ b/querybuilder/query.py @@ -642,7 +642,7 @@ def get_cursor(self): :returns: A database cursor """ - # From Django 3.1 forward, json columns in raw select statements return a string of json instead of a + # From Django 3.1.1 forward, json columns in raw select statements return a string of json instead of a # json type such as a dict or list. But we can tell psycopg2 to put the # json.loads() call back in place. Technically we would only need this addition for cursors being used # for a SELECT, but it should not cause any issues for other operations.