Django problem while creating logout using simple jwt
Hello everyone. I am working on a project using Django Rest Framework. I need to create login a sign up feature. I used SimpleJWT plugin for this. I used its predefined url endpoint to do login and get access token and refresh token. I created an APIView to do logout. In this APIView I am blacklisting the refresh token. At first it works without any error or exception. But was supposed to move the data from outstanding table to blacklisted table. But only an entry is created in the blacklisted table and the entry from the outstanding table is not deleted. Also, the previously generated access tokens was working. I cannot figure out what's wrong here. I need help in figuring out. I am using MongoDB and Djongo.