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

FieldChoicesViewSet should infer field choices from serializer, not model

This commit is contained in:
Jeremy Stretch
2019-03-22 16:24:53 -04:00
parent 7d1ee2e94e
commit fc76c8eb0f
6 changed files with 26 additions and 11 deletions

View File

@ -23,7 +23,6 @@ from . import serializers
class ExtrasFieldChoicesViewSet(FieldChoicesViewSet):
fields = (
(CustomField, ['type']),
(Graph, ['type']),
)