-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add domains compatiability #810
Conversation
pulp_file/app/models.py
Outdated
@@ -37,10 +38,11 @@ class FileContent(Content): | |||
|
|||
relative_path = models.TextField(null=False) | |||
digest = models.CharField(max_length=64, null=False) | |||
domain = models.ForeignKey("core.Domain", default=get_default_domain, on_delete=models.PROTECT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't we add this on the Content
model?
[ ] Does not work with uniqueness constraints?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can add it as a constraint?
https://docs.djangoproject.com/en/3.2/ref/models/options/#django.db.models.Options.constraints
1647777
to
42a9821
Compare
af7155f
to
14dc957
Compare
pulp_file/tests/functional/api/from_pulpcore/test_content_path.py
Outdated
Show resolved
Hide resolved
057c280
to
ea75c5a
Compare
fixes: #859
Required PR: pulp/pulpcore#3190
[noissue]