views: Add a comment about change in Django 4.0

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-06-28 09:36:18 -07:00 committed by James Valleroy
parent a150cd15bd
commit 40f4a24e92
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -33,7 +33,7 @@ REDIRECT_FIELD_NAME = 'next'
def is_safe_url(url):
"""Check if the URL is safe to redirect to.
Based on Django internal utility.
Based on Django internal utility removed in Django 4.0.
"""
if url is not None: