Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 4, 2024
1 parent 5ef2486 commit 44d501f
Show file tree
Hide file tree
Showing 147 changed files with 531 additions and 523 deletions.
4 changes: 4 additions & 0 deletions _modules/apis_core/history/models.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<h1>Source code for apis_core.history.models</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span>
<span class="kn">from</span> <span class="nn">apis_core.generic.abc</span> <span class="kn">import</span> <span class="n">GenericModel</span>
<span class="kn">from</span> <span class="nn">apis_core.apis_metainfo.models</span> <span class="kn">import</span> <span class="n">RootObject</span>
<span class="kn">from</span> <span class="nn">django.urls</span> <span class="kn">import</span> <span class="n">reverse</span>
<span class="kn">from</span> <span class="nn">simple_history.models</span> <span class="kn">import</span> <span class="n">HistoricalRecords</span>
<span class="kn">from</span> <span class="nn">django.core.exceptions</span> <span class="kn">import</span> <span class="n">AppRegistryNotReady</span>
Expand Down Expand Up @@ -171,6 +172,9 @@ <h1>Source code for apis_core.history.models</h1><div class="highlight"><pre>
<span class="sd"> If only_latest is True, only the latest version of a triple is returned.&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">apis_core.apis_relations.models</span> <span class="kn">import</span> <span class="n">TempTriple</span>

<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">instance</span><span class="p">,</span> <span class="n">RootObject</span><span class="p">):</span>
<span class="k">return</span> <span class="n">TempTriple</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">none</span><span class="p">()</span>

<span class="k">if</span> <span class="n">history_date</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">filter_date</span> <span class="o">=</span> <span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">next_record</span><span class="o">.</span><span class="n">history_date</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">next_record</span> <span class="k">else</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span>
Expand Down
40 changes: 20 additions & 20 deletions htmlcov/class_index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 34 additions & 34 deletions htmlcov/function_index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 44d501f

Please sign in to comment.