Fakultas Ilmu Komputer UI

Commit 2bb9bb0d authored by Ami's avatar Ami
Browse files

increase pylint score + resets DB

parent 91f0c754
Pipeline #84114 passed with stages
in 27 minutes and 5 seconds
......@@ -58,10 +58,6 @@ class CustomUserDetailsSerializer(serializers.ModelSerializer):
result['role'] = instance.groups.first().name
if instance.is_staff:
result['role'] = 'admin'
# id_user = instance.id
# print(id_user)
return result
class Meta:
......@@ -3,8 +3,8 @@ from rest_framework import viewsets, status
from rest_framework.response import Response
from django.db.models import Q
from authentication.models import CustomUser
from payment.models import Cart
from authentication.utilities import get_appropriate_week_num
from payment.models import Cart
from .models import WeeklyReport, WeeklyReportComment
from .serializers import WeeklyReportSerializer, WeeklyReportCommentSerializer
Supports Markdown
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