Ticket #25918: fix_25918.patch

File fix_25918.patch, 1.4 KB (added by Christoph Schindler, 9 years ago)
  • django/conf/global_settings.py

    From afa4e881e95a11ffb2e351f6f2faa6b7d9818afd Mon Sep 17 00:00:00 2001
    From: Christoph Schindler <hop@30hopsmax.at>
    Date: Fri, 11 Dec 2015 16:25:32 +0100
    Subject: [PATCH] Fixed #25918 -- Removed LOGOUT_URL from global settings and
     documentation.
    
    ---
     django/conf/global_settings.py | 2 --
     docs/ref/settings.txt          | 9 ---------
     2 files changed, 11 deletions(-)
    
    diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
    index b85d355..cbcf5b4 100644
    a b AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']  
    481481
    482482LOGIN_URL = '/accounts/login/'
    483483
    484 LOGOUT_URL = '/accounts/logout/'
    485 
    486484LOGIN_REDIRECT_URL = '/accounts/profile/'
    487485
    488486# The number of days a password reset link is valid for
  • docs/ref/settings.txt

    diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
    index 491e888..fc5ef44 100644
    a b This setting also accepts view function names and :ref:`named URL patterns  
    26372637<naming-url-patterns>` which can be used to reduce configuration duplication
    26382638since you don't have to define the URL in two places (``settings`` and URLconf).
    26392639
    2640 .. setting:: LOGOUT_URL
    2641 
    2642 LOGOUT_URL
    2643 ----------
    2644 
    2645 Default: ``'/accounts/logout/'``
    2646 
    2647 LOGIN_URL counterpart.
    2648 
    26492640.. setting:: PASSWORD_RESET_TIMEOUT_DAYS
    26502641
    26512642PASSWORD_RESET_TIMEOUT_DAYS
Back to Top