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

@ -1,7 +1,7 @@
from collections import OrderedDict
from django.conf import settings
from django.db.models import F, Q
from django.db.models import F
from django.http import HttpResponseForbidden
from django.shortcuts import get_object_or_404
from drf_yasg import openapi