mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Fixed Tenant import
This commit is contained in:
parent
27c21237ff
commit
41b2b7dbf6
@ -31,22 +31,27 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Name</td>
|
<td>Name</td>
|
||||||
<td>Tenant name</td>
|
<td>Tenant name</td>
|
||||||
<td>Widgets Inc.</td>
|
<td>WIDG01</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Slug</td>
|
<td>Slug</td>
|
||||||
<td>URL-friendly name</td>
|
<td>URL-friendly name</td>
|
||||||
<td>widgets-inc</td>
|
<td>widg01</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Group</td>
|
<td>Group</td>
|
||||||
<td>Tenant group</td>
|
<td>Tenant group</td>
|
||||||
<td>Customers</td>
|
<td>Customers</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Description</td>
|
||||||
|
<td>Long-form name or other text (optional)</td>
|
||||||
|
<td>Widgets Inc.</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h4>Example</h4>
|
<h4>Example</h4>
|
||||||
<pre>Widgets Inc.,widgets-inc,Customers</pre>
|
<pre>WIDG01,widg01,Customers,Widgets Inc.</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -39,7 +39,7 @@ class TenantFromCSVForm(forms.ModelForm):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Tenant
|
model = Tenant
|
||||||
fields = ['name', 'slug', 'group', 'description', 'comments']
|
fields = ['name', 'slug', 'group', 'description']
|
||||||
|
|
||||||
|
|
||||||
class TenantImportForm(BulkImportForm, BootstrapMixin):
|
class TenantImportForm(BulkImportForm, BootstrapMixin):
|
||||||
|
Loading…
Reference in New Issue
Block a user