code: def create(self, request, project):
          
          job_id = int(request.data['job_id'])
          bug_id = int(request.data['bug_id'])
  
          try:
              BugJobMap.create(
                  job_id=job_id,
                  bug_id=bug_id,
                  user=request.user,
              )
              message = "Bug job map saved"
          except IntegrityError:
              message = "Bug job map skipped: mapping already exists"
  
          return Response({"message": message})
docs: Add a new relation between a job and a bug.