nautobot 1.6.21__py3-none-any.whl → 1.6.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nautobot might be problematic. Click here for more details.
- nautobot/core/settings.py +13 -3
- nautobot/core/templates/admin/base.html +8 -2
- nautobot/core/templates/base.html +2 -2
- nautobot/core/templates/graphene/graphiql.html +3 -0
- nautobot/core/templates/inc/javascript.html +3 -0
- nautobot/core/templates/inc/media.html +3 -0
- nautobot/core/templates/login.html +2 -2
- nautobot/core/templates/nautobot_config.py.j2 +2 -0
- nautobot/core/tests/test_views.py +33 -0
- nautobot/extras/api/views.py +2 -2
- nautobot/extras/tests/test_api.py +23 -1
- nautobot/extras/tests/test_datasources.py +72 -2
- nautobot/extras/tests/test_dynamicgroups.py +1 -1
- nautobot/extras/tests/test_views.py +48 -4
- nautobot/extras/utils.py +32 -15
- nautobot/extras/views.py +4 -2
- nautobot/project-static/docs/code-reference/nautobot/apps/models.html +20 -20
- nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +2824 -2804
- nautobot/project-static/docs/configuration/optional-settings.html +19 -5
- nautobot/project-static/docs/release-notes/version-1.6.html +305 -159
- nautobot/project-static/docs/search/search_index.json +1 -1
- nautobot/project-static/docs/sitemap.xml +187 -187
- nautobot/project-static/docs/sitemap.xml.gz +0 -0
- nautobot/utilities/testing/views.py +6 -1
- {nautobot-1.6.21.dist-info → nautobot-1.6.23.dist-info}/METADATA +1 -1
- {nautobot-1.6.21.dist-info → nautobot-1.6.23.dist-info}/RECORD +30 -30
- {nautobot-1.6.21.dist-info → nautobot-1.6.23.dist-info}/LICENSE.txt +0 -0
- {nautobot-1.6.21.dist-info → nautobot-1.6.23.dist-info}/NOTICE +0 -0
- {nautobot-1.6.21.dist-info → nautobot-1.6.23.dist-info}/WHEEL +0 -0
- {nautobot-1.6.21.dist-info → nautobot-1.6.23.dist-info}/entry_points.txt +0 -0
|
@@ -5460,7 +5460,11 @@ can specify additional apps with ease. Similarly, additional <code>MIDDLEWARE</
|
|
|
5460
5460
|
<h2 id="banner_top">BANNER_TOP<a class="headerlink" href="#banner_top" title="Permanent link">¶</a></h2>
|
|
5461
5461
|
<h2 id="banner_bottom">BANNER_BOTTOM<a class="headerlink" href="#banner_bottom" title="Permanent link">¶</a></h2>
|
|
5462
5462
|
<p>Default: <code>""</code> (Empty string)</p>
|
|
5463
|
-
<p>
|
|
5463
|
+
<p>Environment Variable: <code>NAUTOBOT_BANNER_TOP</code>
|
|
5464
|
+
Environment Variable: <code>NAUTOBOT_BANNER_BOTTOM</code></p>
|
|
5465
|
+
<p>Setting these variables will display custom content in a banner at the top and/or bottom of the page, respectively.</p>
|
|
5466
|
+
<p>Markdown formatting is supported within these messages, as well as <a href="../additional-features/template-filters.html#render_markdown">a limited subset of HTML</a>.</p>
|
|
5467
|
+
<p>To replicate the content of the top banner in the bottom banner, set:</p>
|
|
5464
5468
|
<div class="highlight"><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="n">BANNER_TOP</span> <span class="o">=</span> <span class="s1">'Your banner text'</span>
|
|
5465
5469
|
<a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a><span class="n">BANNER_BOTTOM</span> <span class="o">=</span> <span class="n">BANNER_TOP</span>
|
|
5466
5470
|
</code></pre></div>
|
|
@@ -5471,7 +5475,9 @@ can specify additional apps with ease. Similarly, additional <code>MIDDLEWARE</
|
|
|
5471
5475
|
<hr />
|
|
5472
5476
|
<h2 id="banner_login">BANNER_LOGIN<a class="headerlink" href="#banner_login" title="Permanent link">¶</a></h2>
|
|
5473
5477
|
<p>Default: <code>""</code> (Empty string)</p>
|
|
5474
|
-
<p>
|
|
5478
|
+
<p>Environment Variable: <code>NAUTOBOT_BANNER_LOGIN</code></p>
|
|
5479
|
+
<p>This defines custom content to be displayed on the login page above the login form.</p>
|
|
5480
|
+
<p>Markdown formatting is supported within this message, as well as <a href="../additional-features/template-filters.html#render_markdown">a limited subset of HTML</a>.</p>
|
|
5475
5481
|
<div class="admonition version-added">
|
|
5476
5482
|
<p class="admonition-title">Added in version 1.2.0</p>
|
|
5477
5483
|
<p>If you do not set a value for this setting in your <code>nautobot_config.py</code>, it can be configured dynamically by an admin user via the Nautobot Admin UI. If you do have a value for this setting in <code>nautobot_config.py</code>, it will override any dynamically configured value.</p>
|
|
@@ -5487,9 +5493,11 @@ can specify additional apps with ease. Similarly, additional <code>MIDDLEWARE</
|
|
|
5487
5493
|
<a id="__codelineno-2-6" name="__codelineno-2-6" href="#__codelineno-2-6"></a> <span class="s2">"icon_180"</span><span class="p">:</span> <span class="n">os</span><span class="o">.</span><span class="n">getenv</span><span class="p">(</span><span class="s2">"NAUTOBOT_BRANDING_FILEPATHS_ICON_180"</span><span class="p">,</span> <span class="kc">None</span><span class="p">),</span> <span class="c1"># 180x180px icon - used for the apple-touch-icon header</span>
|
|
5488
5494
|
<a id="__codelineno-2-7" name="__codelineno-2-7" href="#__codelineno-2-7"></a> <span class="s2">"icon_192"</span><span class="p">:</span> <span class="n">os</span><span class="o">.</span><span class="n">getenv</span><span class="p">(</span><span class="s2">"NAUTOBOT_BRANDING_FILEPATHS_ICON_192"</span><span class="p">,</span> <span class="kc">None</span><span class="p">),</span> <span class="c1"># 192x192px icon</span>
|
|
5489
5495
|
<a id="__codelineno-2-8" name="__codelineno-2-8" href="#__codelineno-2-8"></a> <span class="s2">"icon_mask"</span><span class="p">:</span> <span class="n">os</span><span class="o">.</span><span class="n">getenv</span><span class="p">(</span><span class="s2">"NAUTOBOT_BRANDING_FILEPATHS_ICON_MASK"</span><span class="p">,</span> <span class="kc">None</span><span class="p">),</span> <span class="c1"># mono-chrome icon used for the mask-icon header</span>
|
|
5490
|
-
<a id="__codelineno-2-9" name="__codelineno-2-9" href="#__codelineno-2-9"></a><span class="p">
|
|
5496
|
+
<a id="__codelineno-2-9" name="__codelineno-2-9" href="#__codelineno-2-9"></a> <span class="s2">"css"</span><span class="p">:</span> <span class="n">os</span><span class="o">.</span><span class="n">getenv</span><span class="p">(</span><span class="s2">"NAUTOBOT_BRANDING_FILEPATHS_CSS"</span><span class="p">,</span> <span class="kc">None</span><span class="p">),</span> <span class="c1"># custom global CSS file</span>
|
|
5497
|
+
<a id="__codelineno-2-10" name="__codelineno-2-10" href="#__codelineno-2-10"></a> <span class="s2">"javascript"</span><span class="p">:</span> <span class="n">os</span><span class="o">.</span><span class="n">getenv</span><span class="p">(</span><span class="s2">"NAUTOBOT_BRANDING_FILEPATHS_JAVASCRIPT"</span><span class="p">,</span> <span class="kc">None</span><span class="p">),</span> <span class="c1"># custom global Javascript file</span>
|
|
5498
|
+
<a id="__codelineno-2-11" name="__codelineno-2-11" href="#__codelineno-2-11"></a><span class="p">}</span>
|
|
5491
5499
|
</code></pre></div>
|
|
5492
|
-
<p>A set of filepaths relative to the <a href="#media_root"><code>MEDIA_ROOT</code></a> which locate
|
|
5500
|
+
<p>A set of filepaths relative to the <a href="#media_root"><code>MEDIA_ROOT</code></a> which locate assets used for custom branding of your Nautobot instance. With the exception of <code>css</code> and <code>javascript</code>, which provide the option to add an <em>additional</em> file to Nautobot page content, each of the other assets takes the place of the corresponding stock Nautobot asset. This allows for instance, providing your own navbar logo and favicon.</p>
|
|
5493
5501
|
<p>These environment variables may be used to specify the values:</p>
|
|
5494
5502
|
<ul>
|
|
5495
5503
|
<li><code>NAUTOBOT_BRANDING_FILEPATHS_LOGO</code></li>
|
|
@@ -5499,8 +5507,14 @@ can specify additional apps with ease. Similarly, additional <code>MIDDLEWARE</
|
|
|
5499
5507
|
<li><code>NAUTOBOT_BRANDING_FILEPATHS_ICON_180</code></li>
|
|
5500
5508
|
<li><code>NAUTOBOT_BRANDING_FILEPATHS_ICON_192</code></li>
|
|
5501
5509
|
<li><code>NAUTOBOT_BRANDING_FILEPATHS_ICON_MASK</code></li>
|
|
5510
|
+
<li><code>NAUTOBOT_BRANDING_FILEPATHS_CSS</code></li>
|
|
5511
|
+
<li><code>NAUTOBOT_BRANDING_FILEPATHS_JAVASCRIPT</code></li>
|
|
5502
5512
|
</ul>
|
|
5503
|
-
<p>If a custom
|
|
5513
|
+
<p>If a custom asset is not provided for any of the above options, the stock Nautobot asset is used.</p>
|
|
5514
|
+
<div class="admonition version-added">
|
|
5515
|
+
<p class="admonition-title">Added in version 1.6.22</p>
|
|
5516
|
+
<p>The <code>css</code> and <code>javascript</code> assets were added as options.</p>
|
|
5517
|
+
</div>
|
|
5504
5518
|
<hr />
|
|
5505
5519
|
<h2 id="branding_prepended_filename">BRANDING_PREPENDED_FILENAME<a class="headerlink" href="#branding_prepended_filename" title="Permanent link">¶</a></h2>
|
|
5506
5520
|
<div class="admonition version-added">
|