diff --git a/codeforlife/user/views/user.py b/codeforlife/user/views/user.py index a66c2f9..90aa9c8 100644 --- a/codeforlife/user/views/user.py +++ b/codeforlife/user/views/user.py @@ -27,7 +27,7 @@ def get_queryset( ): # TODO: remove this in new schema and add to get_queryset queryset = user_class.objects.filter(is_active=True) - + user = self.request.auth_user if user.student: if user.student.class_field is None: