Commit df90a600 authored by John Red Medrano's avatar John Red Medrano

RMS32: User Management Download List, exclude the id number 1 to not include...

RMS32: User Management Download List, exclude the id number 1 to not include the superuser on list of user download
parent 589d6213
......@@ -25,7 +25,7 @@ class UserDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet):
# id_number = request.user.code
data = User.objects.all()
data = User.objects.all().exclude(id=1)
serializer = headers(data=data, many=True)
serializer.is_valid(raise_exception=False)
return Response(serializer.data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment