P-25 fix
This commit is contained in:
1 parent
948c06ffec
commit
7c0de35389
3 files changed
+4
-3
No files matched your search
@@ -12,7 +12,8 @@ from userauth.models import *
|
||||
|
||||
class SafetyTypeAPIView(ListAPIView):
|
||||
def get(self, request):
|
||||
chapters = SafetyType.objects.annotate(Count("type_file")).filter(type_file__count__gt=0)
|
||||
print("sdfsdssssssssssssssssssssssssss")
|
||||
chapters = SafetyType.objects.annotate(Count("mainpage_file")).filter(mainpage_file__count__gt=0)
|
||||
return Response(SafetyTypeSerializer(chapters, many=True).data)
|
||||
|
||||
class SafetyAPIView(APIView):
|
||||
|
||||
Reference in new issue
Block a user