diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 3a8e80d65b832e2d67fc496a3a44956de4b6c770..9618bd9783037f8379da61ab622b7febe4e103ac 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -7,6 +7,14 @@ The format is based on `Keep a Changelog <http://keepachangelog.com/>`__
 and this project adheres to `Semantic
 Versioning <http://semver.org/>`__.
 
+0.5.1
+-----
+
+Changed
+~~~~~~~
+
+-  Allow Django 4.0
+
 0.5.0
 -----
 
diff --git a/pyproject.toml b/pyproject.toml
index 87658649ba9d822e7a1527408949b06e8f46306c..2558b97ed66780945ee01dd8afbfdfa4cb5f5086 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "calendarweek"
-version = "0.5.0"
+version = "0.5.1"
 description = "Utilities for working with calendar weeks in Python and Django"
 authors = ["Dominik George <nik@naturalnet.de>", "Jonathan Weth <git@jonathanweth.de>"]
 license = "Apache-2.0"
@@ -21,7 +21,7 @@ classifiers = [
 
 [tool.poetry.dependencies]
 python = "^3.7"
-Django = {version = ">=2.2, <4.0", optional = true}
+Django = {version = ">=2.2, <5.0", optional = true}
 
 [tool.poetry.extras]
 django = ["Django"]