From 52818dab6321d05f6934476f101ec1c21d87e092 Mon Sep 17 00:00:00 2001 From: Fardale Date: Fri, 5 Oct 2018 21:48:06 +0200 Subject: [PATCH] Correct typo with get_port_profile --- users/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/forms.py b/users/forms.py index c0c39e69..a384aa62 100644 --- a/users/forms.py +++ b/users/forms.py @@ -719,7 +719,7 @@ class InitialRegisterForm(forms.Form): port = Port.objects.filter(switch__interface__ipv4__ipv4=switch_ip, port=switch_port).first() # If a port exists, checking there is a room AND radius if port: - if port.get_port_profil.radius_type != 'NO' and port.get_port_profil.radius_mode == 'STRICT' and hasattr(port, 'room'): + if port.get_port_profile.radius_type != 'NO' and port.get_port_profile.radius_mode == 'STRICT' and hasattr(port, 'room'): # Requesting user is not in this room ? if self.user.room != port.room: self.new_room = port.room