mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names.
Thanks UloPe and Eric Florenzano for the patch, and Malcolm Tredinnick for review.
This commit is contained in:
@@ -17,7 +17,7 @@ CT = ContentType.objects.get_for_model
|
||||
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',))
|
||||
class CommentTestCase(TestCase):
|
||||
fixtures = ["comment_tests"]
|
||||
urls = 'django.contrib.comments.urls'
|
||||
urls = 'regressiontests.comment_tests.urls_default'
|
||||
|
||||
def createSomeComments(self):
|
||||
# Two anonymous comments on two different objects
|
||||
|
||||
9
tests/regressiontests/comment_tests/urls_default.py
Normal file
9
tests/regressiontests/comment_tests/urls_default.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.conf.urls.defaults import *
|
||||
|
||||
urlpatterns = patterns('',
|
||||
(r'^', include('django.contrib.comments.urls')),
|
||||
|
||||
# Provide the auth system login and logout views
|
||||
(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
|
||||
(r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
|
||||
)
|
||||
Reference in New Issue
Block a user