Commit 4fe5ab4e authored by ChamendiPabasara's avatar ChamendiPabasara

gazetteApi configuarations

parent 4ef1da80
......@@ -528,10 +528,11 @@ def gazetteDownloadDetailsApi(request, id=0):
return JsonResponse(gazette_serializer.data, safe=False)
@ csrf_exempt
def gazetteApi(request, id=0):
# retrieving
# data retrieving
if request.method == 'GET':
gazettes = Gazette.objects.all()
gazette_serializer = GazetteSerializer(gazettes, many=True)
......
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