Fixed Tenant import

This commit is contained in:
Jeremy Stretch 2016-07-26 17:47:40 -04:00
parent 27c21237ff
commit 41b2b7dbf6
2 changed files with 9 additions and 4 deletions

View File

@ -31,22 +31,27 @@
<tr>
<td>Name</td>
<td>Tenant name</td>
<td>Widgets Inc.</td>
<td>WIDG01</td>
</tr>
<tr>
<td>Slug</td>
<td>URL-friendly name</td>
<td>widgets-inc</td>
<td>widg01</td>
</tr>
<tr>
<td>Group</td>
<td>Tenant group</td>
<td>Customers</td>
</tr>
<tr>
<td>Description</td>
<td>Long-form name or other text (optional)</td>
<td>Widgets Inc.</td>
</tr>
</tbody>
</table>
<h4>Example</h4>
<pre>Widgets Inc.,widgets-inc,Customers</pre>
<pre>WIDG01,widg01,Customers,Widgets Inc.</pre>
</div>
</div>
{% endblock %}

View File

@ -39,7 +39,7 @@ class TenantFromCSVForm(forms.ModelForm):
class Meta:
model = Tenant
fields = ['name', 'slug', 'group', 'description', 'comments']
fields = ['name', 'slug', 'group', 'description']
class TenantImportForm(BulkImportForm, BootstrapMixin):