api: update old field names
This commit is contained in:
parent
736e13fc35
commit
45bd63c720
|
@ -7,7 +7,7 @@ from rest_framework import routers
|
||||||
from structlog import get_logger
|
from structlog import get_logger
|
||||||
|
|
||||||
from passbook.api.permissions import CustomObjectPermissions
|
from passbook.api.permissions import CustomObjectPermissions
|
||||||
from passbook.audit.api.events import EventViewSet
|
from passbook.audit.api import EventViewSet
|
||||||
from passbook.core.api.applications import ApplicationViewSet
|
from passbook.core.api.applications import ApplicationViewSet
|
||||||
from passbook.core.api.factors import FactorViewSet
|
from passbook.core.api.factors import FactorViewSet
|
||||||
from passbook.core.api.groups import GroupViewSet
|
from passbook.core.api.groups import GroupViewSet
|
||||||
|
|
|
@ -18,7 +18,7 @@ class EventSerializer(ModelSerializer):
|
||||||
"date",
|
"date",
|
||||||
"app",
|
"app",
|
||||||
"context",
|
"context",
|
||||||
"request_ip",
|
"client_ip",
|
||||||
"created",
|
"created",
|
||||||
]
|
]
|
||||||
|
|
|
@ -34,7 +34,7 @@ class ApplicationGatewayProviderSerializer(ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
model = ApplicationGatewayProvider
|
model = ApplicationGatewayProvider
|
||||||
fields = ["pk", "name", "host", "client"]
|
fields = ["pk", "name", "internal_host", "external_host", "client"]
|
||||||
read_only_fields = ["client"]
|
read_only_fields = ["client"]
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue