mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
newforms-admin: Fixed #6802 -- regressiontests/forms/media.py perserves the MEDIA_URL once finished. Thanks, ales_zoulek.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e998204765
commit
46783a0db8
@ -4,6 +4,7 @@
|
||||
media_tests = r"""
|
||||
>>> from django.newforms import TextInput, Media, TextInput, CharField, Form, MultiWidget
|
||||
>>> from django.conf import settings
|
||||
>>> ORIGINAL_MEDIA_URL = settings.MEDIA_URL
|
||||
>>> settings.MEDIA_URL = 'http://media.example.com/media/'
|
||||
|
||||
# Check construction of media objects
|
||||
@ -354,4 +355,5 @@ media_tests = r"""
|
||||
<script type="text/javascript" src="/path/to/js4"></script>
|
||||
<script type="text/javascript" src="/some/form/javascript"></script>
|
||||
|
||||
>>> settings.MEDIA_URL = ORIGINAL_MEDIA_URL
|
||||
"""
|
Loading…
x
Reference in New Issue
Block a user