From 5d4613b44fa3c380adf9fddcb79e094fa53fad47 Mon Sep 17 00:00:00 2001
From: Ethan Nguyen <etnguyen03@hotmail.com>
Date: Thu, 18 Nov 2021 14:30:41 -0600
Subject: [PATCH] fix(profile): use isinstance instead of type

---
 tjdests/apps/profile/forms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tjdests/apps/profile/forms.py b/tjdests/apps/profile/forms.py
index 071fff0..c444d64 100644
--- a/tjdests/apps/profile/forms.py
+++ b/tjdests/apps/profile/forms.py
@@ -28,7 +28,7 @@ class ProfilePublishForm(forms.ModelForm):
         # Check the GPA: 0.0 <= GPA <= 5.0
         if cleaned_data.get("GPA"):
             gpa = cleaned_data.get("GPA")
-            assert type(gpa) is float
+            assert isinstance(gpa, float)
             if not 0.0 <= gpa <= 5.0:
                 self.add_error("GPA", "This is not a valid GPA")