Django provides some helpers that could clean the notification code. Source: https://github.com/kernelci/dashboard/pull/1646#discussion_r2614992961