Thursday, July 2, 2020

How to achieve this?

My clients wants sub admins panel , just like a staff users 


class OfferListAPIView(generics.ListCreateAPIView):
queryset = Offers.objects.all().order_by('-id')
serializer = OfferListSerializer
@decorator
def list(self, request):
queryset = self.get_queryset()
serializer = OfferListSerializer(queryset, many=True)
return response_handler(data=serializer.data, message="All offer list fetched.")


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/83e28995-bd94-4cc0-921f-b8096d724717o%40googlegroups.com.

No comments:

Post a Comment