Skip to content

Commit

Permalink
bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Jul 24, 2023
1 parent a1191be commit e2f8ce8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
Changes
=======

0.57.0
------

``PiccoloCRUD`` now handles foreign key violation errors gracefully.

For example, if we have tables like this:

.. code-block:: python
class Director(Table):
name = Varchar()
class Movie(Table):
name = Varchar()
director = ForeignKey(Director, on_delete=OnDelete.restrict)
The ``ON DELETE RESTRICT`` constraint means we're not allowed to delete a
director if a movie has a foreign key to it.

We now get a ``422`` error response, with an error message which we can display
in Piccolo Admin.

Support for Python 3.7 has also been dropped, as it's end of life.

-------------------------------------------------------------------------------

0.56.0
------

Expand Down
2 changes: 1 addition & 1 deletion piccolo_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__VERSION__ = "0.56.0"
__VERSION__ = "0.57.0"

0 comments on commit e2f8ce8

Please sign in to comment.