Repository: pulp/pulpcore

Issue:
[noissue]: Update django-guid requirement from <=3.4.0,>=3.3 to >=3.3,<=3.5.0
Updates the requirements on [django-guid](https://github.com/snok/django-guid) to permit the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/snok/django-guid/releases">django-guid's releases</a>.</em></p>
<blockquote>
<h2>3.5.0 -  Pptionally override the record field name where the guid is stored</h2>
<h2>What's Changed</h2>
<ul>
<li>Add the ability to customize the log record field name for correlation ids. by <a href="https://github.com/NiklasBeierl"><code>@​NiklasBeierl</code></a> in <a href="https://redirect.github.com/snok/django-guid/pull/115">snok/django-guid#115</a></li>
</ul>
<p>Usage:</p>
<pre lang="python"><code>        'filters': {
            'correlation_id': {
                '()': 'django_guid.log_filters.CorrelationId',
                # You can optionally override the record field name where the guid is stored
                'correlation_id_field': 'my_custom_correlation_id'
            }
        }
</code></pre>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/NiklasBeierl"><code>@​NiklasBeierl</code></a> made their first contribution in <a href="https://redirect.github.com/snok/django-guid/pull/115">snok/django-guid#115</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/snok/django-guid/compare/3.4.1...3.5.0">https://github.com/snok/django-guid/compare/3.4.1...3.5.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/snok/django-guid/commit/4d80d58a12f9f09c0ed34d40c3418ed1a77938c6"><code>4d80d58</code></a> chore: version bump</li>
<li><a href="https://github.com/snok/django-guid/commit/d039a7e081170804a5fe7c56620df7ff04d61a36"><code>d039a7e</code></a> New: Custom log field for correlation ids</li>
<li><a href="https://github.com/snok/django-guid/commit/da0fadb71e3a4f272887083b8a7056a0629bccb0"><code>da0fadb</code></a> Doc: Complete sentence for VALIDATE</li>
<li><a href="https://github.com/snok/django-guid/commit/9a9b00a37c0cfd8c1cd1ede08d180b3e8b6aa6e6"><code>9a9b00a</code></a> Merge pull request <a href="https://redirect.github.com/snok/django-guid/issues/114">#114</a> from ingvaldlorentzen/django-5-docs</li>
<li><a href="https://github.com/snok/django-guid/commit/b7bbbe59ce085377302413d2a16679075f9e79c0"><code>b7bbbe5</code></a> Update metadata to reflect supported versions</li>
<li><a href="https://github.com/snok/django-guid/commit/9bf8c7f8f818ec973d358dda731d13dfc614e7e0"><code>9bf8c7f</code></a> Merge pull request <a href="https://redirect.github.com/snok/django-guid/issues/113">#113</a> from ingvaldlorentzen/django-5</li>
<li><a href="https://github.com/snok/django-guid/commit/9047e4368cc3ac589e28f60fdd986ae0b5dd5ffb"><code>9047e43</code></a> Fix pre-commit changes</li>
<li><a href="https://github.com/snok/django-guid/commit/f5cda888a0e4760219acd74667e49ddbc9a99485"><code>f5cda88</code></a> Update pre-commit for linting fix</li>
<li><a href="https://github.com/snok/django-guid/commit/80dc41cecaeb5cad5af9774c07f86795b219eee5"><code>80dc41c</code></a> Bump version</li>
<li><a href="https://github.com/snok/django-guid/commit/9ac05f09946522682fd3e2e3ddc22a6fffa9741d"><code>9ac05f0</code></a> Update version matrix to use LTS for v3</li>
<li>Additional commits viewable in <a href="https://github.com/snok/django-guid/compare/3.3.0...3.5.0">compare view</a></li>
</ul>
</details>
<br />


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/pulpcore/app/viewsets/base.py b/pulpcore/app/viewsets/base.py
--- a/pulpcore/app/viewsets/base.py
+++ b/pulpcore/app/viewsets/base.py
@@ -8,7 +8,7 @@
 from drf_yasg.utils import swagger_auto_schema
 from rest_framework import viewsets
 from rest_framework.generics import get_object_or_404
-from rest_framework.schemas import AutoSchema
+from rest_framework.schemas.openapi import AutoSchema
 from rest_framework.serializers import ValidationError as DRFValidationError
 
 from pulpcore.app import tasks
diff --git a/pulpcore/app/viewsets/upload.py b/pulpcore/app/viewsets/upload.py
--- a/pulpcore/app/viewsets/upload.py
+++ b/pulpcore/app/viewsets/upload.py
@@ -60,7 +60,7 @@ def get_serializer_class(self):
 
     def get_serializer_context(self):
         context = super().get_serializer_context()
-        if self.action == 'update':
+        if self.action == 'update' and self.kwargs.get("pk"):
             context["upload"] = self.get_object()
         return context
 


Test patch: