Skip to content
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

dealing with pulpcore default_related_name #269

Merged
merged 1 commit into from Aug 19, 2019

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Aug 9, 2019

Declaring default_related_name
related to: pulp/pulpcore#259

ref #4681
https://pulp.plan.io/issues/4681

Declaring default_related_name
ref #4681
fao89 added a commit to fao89/pulpcore that referenced this pull request Aug 9, 2019
Making mandatory declaring default_related_name
Required PR: pulp/pulp_file#269
closes #4681
fao89 added a commit to fao89/pulpcore that referenced this pull request Aug 9, 2019
Making mandatory declaring default_related_name
Required PR: pulp/pulp_file#269
Required PR: pulp/pulp-certguard#27
closes #4681
@@ -26,6 +26,7 @@ class FileContent(Content):
digest = models.CharField(max_length=64, null=False)

class Meta:
default_related_name = "%(app_label)s_%(model_name)s"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we are using old style string formatting here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just followed the way it was on docs

fao89 added a commit to fao89/pulpcore that referenced this pull request Aug 12, 2019
Making mandatory declaring default_related_name
Required PR: pulp/pulp_file#269
Required PR: pulp/pulp-certguard#27
closes #4681
fao89 added a commit to fao89/pulpcore that referenced this pull request Aug 19, 2019
Making mandatory declaring default_related_name
Required PR: pulp/pulp_file#269
Required PR: pulp/pulp-certguard#27
closes #4681
@daviddavis daviddavis merged commit 31f4937 into pulp:master Aug 19, 2019
fao89 added a commit to fao89/pulpcore that referenced this pull request Aug 19, 2019
Making mandatory declaring default_related_name
Required PR: pulp/pulp_file#269
Required PR: pulp/pulp-certguard#27
closes #4681
daviddavis pushed a commit to pulp/pulpcore that referenced this pull request Aug 19, 2019
Making mandatory declaring default_related_name
Required PR: pulp/pulp_file#269
Required PR: pulp/pulp-certguard#27
closes #4681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants