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")