Skip to content

Commit

Permalink
Merge pull request #116 from ambitioninc/chore/release-notes
Browse files Browse the repository at this point in the history
release notes and a comment change
  • Loading branch information
geophphrie authored Dec 1, 2022
2 parents 4467a00 + 477e58f commit 07caae3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------
Expand Down
2 changes: 1 addition & 1 deletion querybuilder/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 07caae3

Please sign in to comment.