From 42d2f804701d7a3191423494d977f7b4666475a6 Mon Sep 17 00:00:00 2001 From: detraz Date: Mon, 24 Sep 2018 20:01:20 +0200 Subject: [PATCH] Fix divers --- api/serializers.py | 1 + topologie/models.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/serializers.py b/api/serializers.py index f5fd1fa2..94144b40 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -349,6 +349,7 @@ class OptionalMachineSerializer(NamespacedHMSerializer): class OptionalTopologieSerializer(NamespacedHMSerializer): """Serialize `preferences.models.OptionalTopologie` objects. """ + switchs_management_interface_ip = serializers.CharField() class Meta: model = preferences.OptionalTopologie diff --git a/topologie/models.py b/topologie/models.py index 840d9c70..d02fce40 100644 --- a/topologie/models.py +++ b/topologie/models.py @@ -552,7 +552,7 @@ class Port(AclMixin, RevMixin, models.Model): return port_profile else: nothing_profile, _created = PortProfile.objects.get_or_create( - profile_default='nothing', + profil_default='nothing', name='nothing', radius_type='NO' )