<div dir="ltr"><div dir="ltr">The PR: <a href="https://github.com/pulp/pulpcore/pull/259">https://github.com/pulp/pulpcore/pull/259</a> for the issue: <a href="https://pulp.plan.io/issues/4681" target="_blank">#4681</a> is merged</div><div>Please update the Detail models on your plugins.<br><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail-m_-3377029688926112410gmail_signature"><div dir="ltr"><div dir="ltr">On August 19th due to issue <a href="https://pulp.plan.io/issues/4681" target="_blank">#4681</a> we are gonna have changes on how to subclass Master/Detail models in plugins.<br></div></div></div></div><div class="gmail_quote"><div dir="ltr"><div><br></div><div>After August 19th we should define the <span style="background-color:rgb(230,255,237);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap">default_related_name</span></div><div>Example:</div><div><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;line-height:16.25px"><span style="color:rgb(139,0,139);font-weight:bold">class</span> <span style="color:rgb(0,139,69);font-weight:bold">FileContent</span>(Content):
    <span style="color:rgb(205,85,85)">"""</span>
<span style="color:rgb(205,85,85)">    The "file" content type.</span>

<span style="color:rgb(205,85,85)">    Fields:</span>
<span style="color:rgb(205,85,85)">        digest (str): The SHA256 HEX digest.</span>
<span style="color:rgb(205,85,85)">    """</span>
    TYPE = <span style="color:rgb(205,85,85)">'file'</span>
    digest = models.TextField(null=<span style="color:rgb(101,139,0)">False</span>)
    
    <span style="color:rgb(139,0,139);font-weight:bold">class</span> <span style="color:rgb(0,139,69);font-weight:bold">Meta</span>:
        default_related_name = <span style="color:rgb(205,85,85)">"%(app_label)s_%(model_name)s"</span></pre><div><div dir="ltr" class="gmail-m_-3377029688926112410m_6566550774360416971gmail_signature"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">This change is to avoid name conflicts between plugins.</div><div><br></div><div>Related PRs:</div><div>- Making <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap;background-color:rgb(230,255,237)">default_related_name</span> required: <a href="https://github.com/pulp/pulpcore/pull/259" target="_blank">https://github.com/pulp/pulpcore/pull/259</a></div><div>- Docs: <a href="https://github.com/pulp/pulpcore-plugin/pull/119" target="_blank">https://github.com/pulp/pulpcore-plugin/pull/119</a><br>- Example of updating a plugin: <a href="https://github.com/pulp/pulp_file/pull/269" target="_blank">https://github.com/pulp/pulp_file/pull/269</a></div><div dir="ltr"><br>Best regards,</div><div dir="ltr"><span style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:14px;font-weight:700;text-transform:capitalize">Fabricio</span><span style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:14px;font-weight:700;text-transform:capitalize"> </span><span style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:14px;font-weight:700;text-transform:capitalize">Aguiar</span><div>Software Engineer, Pulp Project</div><div><a href="https://www.redhat.com/" style="color:rgb(0,136,206);font-family:RedHatText,sans-serif;font-size:12px;margin:0px" target="_blank">Red Hat Brazil - Latam</a><br></div><div>+55 11 999652368</div><div><img src="https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/f5445ae0c9ddafd5b2f1836854d7416a/Logo-RedHat-Email.png" width="96" height="22"></div></div></div></div></div></div></div>
</div></div>
</blockquote></div></div>