Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 18, 2024
1 parent 62cf7cb commit 6c2c4da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _modules/apis_core/apis_metainfo/models.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ <h1>Source code for apis_core.apis_metainfo.models</h1><div class="highlight"><p
<div class="viewcode-block" id="RootObject.save">
<a class="viewcode-back" href="../../../modules/apis_core.apis_metainfo.html#apis_core.apis_metainfo.models.RootObject.save">[docs]</a>
<span class="k">def</span> <span class="nf">save</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">self_contenttype</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">self_contenttype</span> <span class="o">=</span> <span class="n">caching</span><span class="o">.</span><span class="n">get_contenttype_of_class</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">self_contenttype</span> <span class="o">=</span> <span class="n">ContentType</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">get_for_model</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span></div>


Expand Down

0 comments on commit 6c2c4da

Please sign in to comment.