api: update old field names

This commit is contained in:
Jens Langhammer 2020-02-28 11:48:55 +01:00
parent 736e13fc35
commit 45bd63c720
4 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ from rest_framework import routers
from structlog import get_logger
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.factors import FactorViewSet
from passbook.core.api.groups import GroupViewSet

View File

@ -18,7 +18,7 @@ class EventSerializer(ModelSerializer):
"date",
"app",
"context",
"request_ip",
"client_ip",
"created",
]

View File

@ -34,7 +34,7 @@ class ApplicationGatewayProviderSerializer(ModelSerializer):
class Meta:
model = ApplicationGatewayProvider
fields = ["pk", "name", "host", "client"]
fields = ["pk", "name", "internal_host", "external_host", "client"]
read_only_fields = ["client"]