diff --git a/codeforlife/user/models/user.py b/codeforlife/user/models/user.py index e36dc08..9d9a0ad 100644 --- a/codeforlife/user/models/user.py +++ b/codeforlife/user/models/user.py @@ -192,6 +192,7 @@ def filter_users(self, queryset: QuerySet[User]): return queryset.exclude(email__isnull=True).exclude(email="") +# pylint: disable-next=too-many-ancestors class ContactableUser(User): """A user that can be contacted.""" @@ -275,6 +276,7 @@ def get_queryset(self): return super().get_queryset().prefetch_related("new_teacher") +# pylint: disable-next=too-many-ancestors class TeacherUser(ContactableUser): """A user that is a teacher.""" @@ -488,6 +490,7 @@ def get_queryset(self): return super().get_queryset().prefetch_related("new_student") +# pylint: disable-next=too-many-ancestors class StudentUser(User): """A user that is a student.""" @@ -602,6 +605,7 @@ def create_user( # type: ignore[override] return user +# pylint: disable-next=too-many-ancestors class IndependentUser(ContactableUser): """A user that is an independent learner."""