Skip to content

Commit

Permalink
Set SERVE_FROM_PUBLICATION on PythonDistribution
Browse files Browse the repository at this point in the history
I don't know if this is strictly required since pulp_python defines its
own content handler function but SERVE_FROM_PUBLICATION ought to be set
from a technical correctness standpoint. Also future work might expect
it to be set such as the repo version protection PR I have open against
pulpcore:

pulp/pulpcore#4750

[noissue]
  • Loading branch information
daviddavis committed Dec 6, 2023
1 parent bedd573 commit d3c6243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pulp_python/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class PythonDistribution(Distribution):
"""

TYPE = "python"
SERVE_FROM_PUBLICATION = True

allow_uploads = models.BooleanField(default=True)

Expand Down

0 comments on commit d3c6243

Please sign in to comment.