You could move this line above the 'synonyms in request.POST' check.