Repository: typeddjango/django-stubs

Issue:
Bump django from 4.2.7 to 5.0
Bumps [django](https://github.com/django/django) from 4.2.7 to 5.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/django/django/commit/617bcf611f3daa796e4054ba041089ece30a32fc"><code>617bcf6</code></a> [5.0.x] Bumped version for 5.0 release.</li>
<li><a href="https://github.com/django/django/commit/94914b550db70176963c9b941635a3d9dd87f3a5"><code>94914b5</code></a> [5.0.x]  Finalized release notes for Django 5.0.</li>
<li><a href="https://github.com/django/django/commit/8e1b820fa10d16664beb5d1ca2f5671891da1704"><code>8e1b820</code></a> [5.0.x] Updated translations from Transifex.</li>
<li><a href="https://github.com/django/django/commit/e4d7cc3eae3b6b04866ed5874f5d285b8e083ba0"><code>e4d7cc3</code></a> [5.0.x] Added release date for 4.2.8.</li>
<li><a href="https://github.com/django/django/commit/cb013fc7d9be5faf59f79b6e59ab04e751d05a16"><code>cb013fc</code></a> [5.0.x] Fixed <a href="https://redirect.github.com/django/django/issues/35002">#35002</a> -- Made UniqueConstraints with fields respect nulls_dist...</li>
<li><a href="https://github.com/django/django/commit/6c502734a0395c3c937a827716e3c02697f53f9b"><code>6c50273</code></a> [5.0.x] Fixed <a href="https://redirect.github.com/django/django/issues/35001">#35001</a> -- Fixed position of related widget action icons in admi...</li>
<li><a href="https://github.com/django/django/commit/b8a476b7455868c627fd6cab18d6a5f5da49233e"><code>b8a476b</code></a> [5.0.x] Improved wording in auth.models.User field docs.</li>
<li><a href="https://github.com/django/django/commit/471fa926eaa1bb9270e0b0ad0cd8bdd93ea6f88f"><code>471fa92</code></a> [5.0.x] Fixed <a href="https://redirect.github.com/django/django/issues/34995">#34995</a> -- Improved position of related widget's add link on adm...</li>
<li><a href="https://github.com/django/django/commit/9fe12b0f364b18926ef52587d4dbe2b2901b2b98"><code>9fe12b0</code></a> [5.0.x] Refs <a href="https://redirect.github.com/django/django/issues/34995">#34995</a> -- Made Selenium tests more robust for admin_views and ad...</li>
<li><a href="https://github.com/django/django/commit/7f1dc67f53c0d7a79031852603b8c8445bca65ac"><code>7f1dc67</code></a> [5.0.x] Fixed <a href="https://redirect.github.com/django/django/issues/35006">#35006</a> -- Fixed migrations crash when altering Meta.db_table_co...</li>
<li>Additional commits viewable in <a href="https://github.com/django/django/compare/4.2.7...5.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=django&package-manager=pip&previous-version=4.2.7&new-version=5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Discussion:

Resolving patch:
diff --git a/ext/setup.py b/ext/setup.py
--- a/ext/setup.py
+++ b/ext/setup.py
@@ -15,7 +15,7 @@
 # It's fine to skip django-stubs-ext releases, but when doing a release, update this to newest django-stubs version.
 setup(
     name="django-stubs-ext",
-    version="4.2.7",
+    version="5.0.0.dev1",
     description="Monkey-patching and extensions for django-stubs",
     long_description=readme,
     long_description_content_type="text/markdown",
@@ -44,6 +44,7 @@
         "Framework :: Django :: 3.2",
         "Framework :: Django :: 4.1",
         "Framework :: Django :: 4.2",
+        "Framework :: Django :: 5.0",
     ],
     project_urls={
         "Release notes": "https://github.com/typeddjango/django-stubs/releases",
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def find_stub_files(name: str) -> List[str]:
 
 dependencies = [
     "django",
-    "django-stubs-ext>=4.2.7",
+    "django-stubs-ext>=5.0.0.dev1",
     "tomli; python_version < '3.11'",
     # Types:
     "typing-extensions",
@@ -37,7 +37,7 @@ def find_stub_files(name: str) -> List[str]:
 
 setup(
     name="django-stubs",
-    version="4.2.7",
+    version="5.0.0.dev1",
     description="Mypy stubs for Django",
     long_description=readme,
     long_description_content_type="text/markdown",
@@ -70,6 +70,7 @@ def find_stub_files(name: str) -> List[str]:
         "Framework :: Django :: 3.2",
         "Framework :: Django :: 4.1",
         "Framework :: Django :: 4.2",
+        "Framework :: Django :: 5.0",
     ],
     project_urls={
         "Release notes": "https://github.com/typeddjango/django-stubs/releases",


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -101,9 +101,17 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        python-version: ['3.8', '3.9', '3.10', '3.11']
-        django-version: ['3.2', '4.2']
+        python-version: ['3.10', '3.11']
+        django-version: ['3.2', '4.2', '5.0']
         include:
+          - python-version: '3.8'
+            django-version: '3.2'
+          - python-version: '3.8'
+            django-version: '4.2'
+          - python-version: '3.9'
+            django-version: '3.2'
+          - python-version: '3.9'
+            django-version: '4.2'
           - python-version: '3.12'
             django-version: '4.1'
     steps: