mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
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:
parent
a150cd15bd
commit
40f4a24e92
@ -33,7 +33,7 @@ REDIRECT_FIELD_NAME = 'next'
|
|||||||
def is_safe_url(url):
|
def is_safe_url(url):
|
||||||
"""Check if the URL is safe to redirect to.
|
"""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:
|
if url is not None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user