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> <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 %}

View File

@ -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):