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

Standardize usage of FilterChoiceField

This commit is contained in:
Jeremy Stretch
2020-02-10 09:58:33 -05:00
parent 5ddfde2214
commit 55f5ede970
4 changed files with 8 additions and 6 deletions

View File

@ -212,7 +212,7 @@ class SelectWithPK(StaticSelect2):
option_template_name = 'widgets/select_option_with_pk.html'
class ContentTypeSelect(forms.Select):
class ContentTypeSelect(StaticSelect2):
"""
Appends an `api-value` attribute equal to the slugified model name for each ContentType. For example:
<option value="37" api-value="console-server-port">console server port</option>