Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 11, 2024
1 parent af9a609 commit 9d75593
Show file tree
Hide file tree
Showing 180 changed files with 405 additions and 393 deletions.
14 changes: 10 additions & 4 deletions _modules/apis_core/relations/serializers.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,22 @@ <h1>Source code for apis_core.relations.serializers</h1><div class="highlight"><
<a class="viewcode-back" href="../../../modules/apis_core.relations.html#apis_core.relations.serializers.RelationSerializer.get_subj">[docs]</a>
<span class="nd">@extend_schema_field</span><span class="p">(</span><span class="n">SimpleObjectSerializer</span><span class="p">())</span>
<span class="k">def</span> <span class="nf">get_subj</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">obj</span><span class="p">):</span>
<span class="n">serializer</span> <span class="o">=</span> <span class="n">serializer_factory</span><span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">obj</span><span class="o">.</span><span class="n">subj</span><span class="p">),</span> <span class="n">SimpleObjectSerializer</span><span class="p">)</span>
<span class="k">return</span> <span class="n">serializer</span><span class="p">(</span><span class="n">obj</span><span class="o">.</span><span class="n">subj</span><span class="p">,</span> <span class="n">context</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;request&quot;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">context</span><span class="p">[</span><span class="s2">&quot;request&quot;</span><span class="p">]})</span><span class="o">.</span><span class="n">data</span></div>
<span class="k">if</span> <span class="n">obj</span><span class="o">.</span><span class="n">subj</span><span class="p">:</span>
<span class="n">serializer</span> <span class="o">=</span> <span class="n">serializer_factory</span><span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">obj</span><span class="o">.</span><span class="n">subj</span><span class="p">),</span> <span class="n">SimpleObjectSerializer</span><span class="p">)</span>
<span class="k">return</span> <span class="n">serializer</span><span class="p">(</span>
<span class="n">obj</span><span class="o">.</span><span class="n">subj</span><span class="p">,</span> <span class="n">context</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;request&quot;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">context</span><span class="p">[</span><span class="s2">&quot;request&quot;</span><span class="p">]}</span>
<span class="p">)</span><span class="o">.</span><span class="n">data</span></div>


<div class="viewcode-block" id="RelationSerializer.get_obj">
<a class="viewcode-back" href="../../../modules/apis_core.relations.html#apis_core.relations.serializers.RelationSerializer.get_obj">[docs]</a>
<span class="nd">@extend_schema_field</span><span class="p">(</span><span class="n">SimpleObjectSerializer</span><span class="p">())</span>
<span class="k">def</span> <span class="nf">get_obj</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">obj</span><span class="p">):</span>
<span class="n">serializer</span> <span class="o">=</span> <span class="n">serializer_factory</span><span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">obj</span><span class="o">.</span><span class="n">obj</span><span class="p">),</span> <span class="n">SimpleObjectSerializer</span><span class="p">)</span>
<span class="k">return</span> <span class="n">serializer</span><span class="p">(</span><span class="n">obj</span><span class="o">.</span><span class="n">obj</span><span class="p">,</span> <span class="n">context</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;request&quot;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">context</span><span class="p">[</span><span class="s2">&quot;request&quot;</span><span class="p">]})</span><span class="o">.</span><span class="n">data</span></div>
<span class="k">if</span> <span class="n">obj</span><span class="o">.</span><span class="n">obj</span><span class="p">:</span>
<span class="n">serializer</span> <span class="o">=</span> <span class="n">serializer_factory</span><span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">obj</span><span class="o">.</span><span class="n">obj</span><span class="p">),</span> <span class="n">SimpleObjectSerializer</span><span class="p">)</span>
<span class="k">return</span> <span class="n">serializer</span><span class="p">(</span>
<span class="n">obj</span><span class="o">.</span><span class="n">obj</span><span class="p">,</span> <span class="n">context</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;request&quot;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">context</span><span class="p">[</span><span class="s2">&quot;request&quot;</span><span class="p">]}</span>
<span class="p">)</span><span class="o">.</span><span class="n">data</span></div>
</div>

</pre></div>
Expand Down
16 changes: 8 additions & 8 deletions htmlcov/class_index.html

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

26 changes: 13 additions & 13 deletions htmlcov/function_index.html

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

16 changes: 8 additions & 8 deletions htmlcov/index.html

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

4 changes: 2 additions & 2 deletions htmlcov/manage_py.html

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

2 changes: 1 addition & 1 deletion htmlcov/status.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241_DateParser_py.html

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

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241___init___py.html

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

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241_authentication_py.html

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

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241_autocomplete_py.html

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

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241_fields_py.html

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

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241_filters_py.html

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

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241_helpers_py.html

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

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241_normalize_py.html

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

4 changes: 2 additions & 2 deletions htmlcov/z_079cb04380c5d241_rdf_py.html

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

Loading

0 comments on commit 9d75593

Please sign in to comment.