| Age | Commit message (Collapse) | Author |
|
|
|
We have always been at war with trailing backslashes.
|
|
That commit didn't always improve readability.
See discussion on django-developers for details.
|
|
This is a follow-up to #18777 which improperly converted to strings in
prepare_value and as such caused regressions like #21074.
Refs #18777, #21074
|
|
Thanks stanislas.guerra at gmail.com for the report.
|
|
Increase default PBKDF2 iterations
|
|
Thanks gsf for the suggestion.
|
|
Increases the default PBKDF2 iterations, since computers have gotten
faster since 2011. In the future, we plan to increment by 10% per
major version.
|
|
- Noted that this does not allow for reading and writing the same open
file in different processes under Windows.
- Noted that the keyword arguments to NamedTemporaryFile no longer
match the Python version.
|
|
|
|
Thanks tobias for the suggestion and boblefrag and saz for work on the
patch.
|
|
Thanks Alexey Boriskin for the report.
|
|
Thanks stavros for the suggestion.
|
|
Thanks simonpercivall for the report and bmispelon for the review.
|
|
TEMPLATE_DIRS.
* django.template.loader.get_template()
* django.template.loader.select_template()
* django.shortcuts.render()
* django.shortcuts.render_to_response()
Thanks amcnabb for the suggestion.
|
|
Thanks margieroginski for the suggestion.
|
|
The SubfieldBase's descriptor caused an AttributeError when accessed
from the class. Introspection didn't like that.
Patch by Trac alias supervacuo.
|
|
|
|
Ensure that selenium quits before the live server thread to
prevent occasional hangs when killing the live server.
|
|
|
|
tearDownClass is not called if setUpClass throws an exception, in our case
this means that LiveServerTestCase leaks LiveServerThread sockets if the
test happens to be skipped later on, and AdminSeleniumWebDriverTestCase
doesn't close it's already open browser window. To prevent this leakage
we catch errors where needed and manually call _tearDownClassInternal.
_tearDownClassInternal should be written as defensively as possible since
it is not allowed to make any assumptions on how far setUpClass got.
This patch should fix the sporadic "Address already in use"-errors on jenkins
and also the "This code isn't under transaction management"-error for sqlite
(also just on jenkins).
After discussion with koniiiik, jezdez, kmtracey, tos9, lifeless, nedbat and
voidspace it was decided that this is the safest approach (thanks to everyone
for their comments and help). Manually calling tearDownClass was shut down
cause we don't know how our users override our classes.
This is a private and very specialized API on purpose and should not be used
without a strong reason!
This patch partially reverts the earlier attempts to fix those issues,
namely:
2fa0dd73b18f55d0fdd1c1d54b1d18031bfcf1ed and
3c5775d36f7e431d9691829a78580873111cb714
Final note: If this patch breaks in a later version of Django, please be
very careful on how you fix it, you might not see test failures locally.
That said, this patch hopefully doesn't produce even more failures.
|
|
|
|
Thanks to Matthias Kestenholz for the report and patch.
|
|
|
|
refs #17627
|
|
Thanks PaulM for the suggestion and Luke Granger-Brown and
Wiktor Kołodziej for the initial patch.
|
|
* Limit the password length to 4096 bytes
* Password hashers will raise a ValueError
* django.contrib.auth forms will fail validation
* Document in release notes that this is a backwards incompatible change
Thanks to Josh Wright for the report, and Donald Stufft for the patch.
This is a security fix; disclosure to follow shortly.
|
|
non-operational webdrivers.
|
|
If setUpClass throws an exception (in this case "Address already in use" if the
super call can't find any open port to bind too) tearDownClass is not called.
This results in open browser windows from the webdriver, hence we only construct
it once we are sure there is no code afterwards which could error out.
|
|
|
|
|
|
|
|
The use of OrderedDict (even an empty one) was surprisingly slow. By
initializing OrderedDict only when needed it is possible to save
non-trivial amount of computing time (Model.save() is around 30% faster
for example).
This commit targetted sql.Query only, there are likely other places
which could use similar optimizations.
|
|
This reverts commit c1ec08998d1b690855d5e69a1f4d9d2f01d44ae6.
There are backwards compatability concerns with this.
|
|
|
|
We want to be able to use it for instance for discovering `tasks.py` modules
inside the INSTALLED_APPS.
This commit therefore moves the logic to `autodiscover_modules` method in
django.utils.module_loading.
|
|
|
|
|
|
|
|
|
|
|
|
of fixtures.
Thanks to lgs for the report and initial patch.
|
|
app-labelish input.
|
|
Thanks Rainer Koirikivi for the report and draft patch.
This is a security fix; disclosure to follow shortly.
|
|
refs #20684
Thanks jacob, jcd, and shai for the suggestions.
|
|
Thanks nick.phillips at otago.ac.nz for the report.
|
|
Thanks SmileyChris for the suggestion.
|
|
redirect's response.
Thanks mjtamlyn for the suggestion.
|
|
Thanks joseph at vertstudios.com for the suggestion.
|
|
Refs #20978.
|