From 45bd63c720ccfe73bb6fb310212ff1014001ca70 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 28 Feb 2020 11:48:55 +0100 Subject: [PATCH] api: update old field names --- passbook/api/v2/urls.py | 2 +- passbook/audit/{api/events.py => api.py} | 2 +- passbook/audit/api/__init__.py | 0 passbook/providers/app_gw/api.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename passbook/audit/{api/events.py => api.py} (95%) delete mode 100644 passbook/audit/api/__init__.py diff --git a/passbook/api/v2/urls.py b/passbook/api/v2/urls.py index c30e4a379..061c16831 100644 --- a/passbook/api/v2/urls.py +++ b/passbook/api/v2/urls.py @@ -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 diff --git a/passbook/audit/api/events.py b/passbook/audit/api.py similarity index 95% rename from passbook/audit/api/events.py rename to passbook/audit/api.py index 8c0652bcc..eafde6f4d 100644 --- a/passbook/audit/api/events.py +++ b/passbook/audit/api.py @@ -18,7 +18,7 @@ class EventSerializer(ModelSerializer): "date", "app", "context", - "request_ip", + "client_ip", "created", ] diff --git a/passbook/audit/api/__init__.py b/passbook/audit/api/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/passbook/providers/app_gw/api.py b/passbook/providers/app_gw/api.py index 39ccbc4b6..c4694f8b9 100644 --- a/passbook/providers/app_gw/api.py +++ b/passbook/providers/app_gw/api.py @@ -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"]