1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Update help_texts for models, import forms

This commit is contained in:
Jeremy Stretch
2020-05-01 15:40:34 -04:00
parent fa630c048c
commit 718ff4a743
10 changed files with 118 additions and 150 deletions

View File

@ -61,9 +61,6 @@ class SecretRoleCSVForm(forms.ModelForm):
class Meta:
model = SecretRole
fields = SecretRole.csv_headers
help_texts = {
'name': 'Name of secret role',
}
#
@ -123,6 +120,7 @@ class SecretCSVForm(CustomFieldModelCSVForm):
device = forms.ModelChoiceField(
queryset=Device.objects.all(),
to_field_name='name',
help_text='Assigned device',
error_messages={
'invalid_choice': 'Device not found.',
}
@ -130,7 +128,7 @@ class SecretCSVForm(CustomFieldModelCSVForm):
role = forms.ModelChoiceField(
queryset=SecretRole.objects.all(),
to_field_name='name',
help_text='Name of assigned role',
help_text='Assigned role',
error_messages={
'invalid_choice': 'Invalid secret role.',
}