summaryrefslogtreecommitdiff
path: root/tests/utils_tests
AgeCommit message (Collapse)Author
2016-01-26[1.9.x] Fixed #26122 -- Fixed copying a LazyObjectBen Kraft
Shallow copying of `django.utils.functional.LazyObject` or its subclasses has been broken in a couple of different ways in the past, most recently due to 35355a4. Backport of 13023ba86746980aace2341ba32a9419e7567751 from master
2016-01-05[1.9.x] Skipped a dateformat test on Windows as needed.Tim Graham
Refs 1014ba026e879e56e0f265a8d9f54e6f39843348 Backport of 2765adc8dcbaa41662af9000c4de2820418bf0a2 from master
2016-01-05[1.9.x] Fixed #26024 -- Fixed regression in ConditionalGetMiddleware ETag ↵Denis Cornehl
support. Backport of 186b6c61bfe85afa4d6bf213d04a28dd2853fed2 from master
2015-12-03[1.9.x] Fixed many spelling mistakes in code, comments, and docs.Josh Soref
Backport of 93452a70e8a62c7408eeded444f5088d4a26212d from master
2015-11-09[1.9.x] Fixed debug view crash during autumn DST change.Aymeric Augustin
This only happens if USE_TZ = False and pytz is installed (perhaps not the most logical combination, but who am I to jugde?) Refs #23714 which essentially fixed the same problem when USE_TZ = True. Thanks Florian and Carl for insisting until I wrote a complete patch. Backport of 1014ba026e879e56e0f265a8d9f54e6f39843348 from master
2015-10-03[1.9.x] Fixed #25389 -- Fixed pickling a SimpleLazyObject wrapping a model.Ben Kraft
Pickling a `SimpleLazyObject` wrapping a model did not work correctly; in particular it did not add the `_django_version` attribute added in 42736ac8. Now it will handle this and other custom `__reduce__` methods correctly. Backport of 35355a4ffedb2aeed52d5fe3034380ffc6a438db from master
2015-09-16Fixed #24496 -- Added CSRF Referer checking against CSRF_COOKIE_DOMAIN.Matt Robenolt
Thanks Seth Gottlieb for help with the documentation and Carl Meyer and Joshua Kehn for reviews.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-07Fixed #24917 -- Made admindocs display model methods that take arguments.Zan Anderle
2015-08-29Made the autoreloader survive all exceptions.Aymeric Augustin
Refs #24704.
2015-08-29Ensured gen_filenames() yields native strings.Aymeric Augustin
This also fixes a test failure on Python 2 when Django is installed in a non-ASCII path. This problem cannot happen on Python 3.
2015-08-29Refactored autoreload tests.Aymeric Augustin
* Added helpers to test uncached and cached access. * Fixed test_project_root_locale: it duplicated test_locale_paths_setting. * Rewrote test_only_new_files: test more cases.
2015-08-29Accounted for error files in the autoreloader.Aymeric Augustin
* When some old files contain errors, the second call to gen_filenames() should return them. * When some new files contain errors, the first call to gen_filenames(only_new=True) should return them.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-17Fixed #16501 -- Added an allow_unicode parameter to SlugField.Edward Henderson
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-07-09Fixed #25093 -- Added utils.datastructures.OrderedSet.__len__()darkryder
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-23Fixed #25000 -- Fixed cast to string for lazy objects.Marten Kenbeek
Implemented __str__() to return the string-representation of the proxied object, not the proxy itself, if the lazy object didn't have a string-like object in its resultclasses.
2015-06-13Fixed #24978 -- Escaped special characters in loaddata fixture pathsMoritz Sichert
2015-06-12Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from classMoritz Sichert
2015-06-06Fixed ImportError message in utils.module_loading.import_string()Tomasz Kontusz
2015-06-04Fixed #19210 -- Added leap year support to django.utils.timesince()Raphael Michel
2015-06-04Fixed #24728 -- Renamed mime_type to content_type for syndication feedsRaphael Michel
Renamed the mime_type properties of RssFeed and Atom1Feed to content_type and start deprecation for the old names.
2015-06-02Fixed #24897 -- Allowed using choices longer than 1 day with DurationFieldzauddelig
2015-05-27Fixed #24836 -- Made force_text() resolve lazy objects.Tim Graham
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-05-17Factored skip condition when pytz isn't installed.Aymeric Augustin
2015-05-16Removed redundant list() calls.Tim Graham
2015-04-24Fixed #22598 -- Allowed make_aware() to work with ambiguous datetimeJosh Smeaton
2015-03-27Fixed #24469 -- Refined escaping of Django's form elements in non-Django ↵Moritz Sichert
templates.
2015-03-18Made is_safe_url() reject URLs that start with control characters.Tim Graham
This is a security fix; disclosure to follow shortly.
2015-03-18Fixed an infinite loop possibility in strip_tags().Tim Graham
This is a security fix; disclosure to follow shortly.
2015-03-09Fixed #24382 -- Allowed unicode chars inside formatted numbersClaude Paroz
Thanks Jacob Rief for the report and Tim Graham for the review.
2015-03-08Fixed #23838 -- added missing `__iter__` to LazyObjectRik
2015-02-23Normalized usage of the tempfile module.Aymeric Augustin
Specifically stopped using the dir argument.
2015-02-17Refs #24324 -- Fixed Python 2 test failures when path to Django source ↵Tim Graham
contains non-ASCII characters.
2015-02-12Fixed #24321 -- Improved `utils.http.same_origin` compliance with RFC6454Lukas Klein
2015-02-08Fixed #24181 -- Fixed multi-char THOUSAND_SEPARATOR insertionVarun Sharma
Report and original patch by Kay Cha.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-04Fixed #24242 -- Improved efficiency of utils.text.compress_sequence()Matthew Somerville
The function no longer flushes zfile after each write as doing so can lead to the gzipped streamed content being larger than the original content; each flush adds a 5/6 byte type 0 block. Removing this means buf.read() may return nothing, so only yield if that has some data. Testing shows without the flush() the buffer is being flushed every 17k or so and compresses the same as if it had been done as a whole string.
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-27Cleaned up some forms tests.Loic Bistuer
Thanks Berker Peksag and Tim Graham for the reviews. Refs #24219.
2015-01-18Removed utils.module_loading.import_by_path() per deprecation timeline; refs ↵Tim Graham
#21674.
2015-01-17Removed utils.text.javascript_quote() per deprecation timeline; refs #21725.Tim Graham
2015-01-17Removed django.utils.tzinfo per deprecation timeline; refs #17262.Tim Graham
2015-01-17Removed django.utils.datastructures.SortedDict per deprecation timeline.Tim Graham
2015-01-17Removed django.utils.datastructures.MergeDict per deprecation timeline; refs ↵Tim Graham
#18659.
2015-01-13Fixed is_safe_url() to handle leading whitespace.Tim Graham
This is a security fix. Disclosure following shortly.
2015-01-12Accounted for multiple template engines in template responses.Aymeric Augustin
2014-12-30Applied ignore_warnings to Django testsClaude Paroz