| Age | Commit message (Collapse) | Author |
|
|
|
Thanks Aymeric Augustin for the suggestion.
|
|
By removing the 'supported' keyword from the detection methods and only relying
on a cached settings.LANGUAGES, the speed of said methods has been improved;
around 4x raw performance. This allows us to stop checking Python's incomplete
list of locales, and rely on a less restrictive regular expression for
accepting certain locales.
HTTP Accept-Language is defined as being case-insensitive, based on this fact
extra performance improvements have been made; it wouldn't make sense to
check for case differences.
|
|
|
|
|
|
The docstring of FilterExpression said that it shouldn't be
instantiated from anywhere but the get_filters_from_token
helper function.
However, that helper function was deleted in commit
3ede006fc98f7e96ae9fb997872f78635576d5f8 and FilterExpression
is instantiated from inside the compile_filter help function.
|
|
Added reversible property to RunPython so that migrations will not
refuse to reverse migrations including RunPython operations, so long as
reverse_code is set in the RunPython constructor. Included tests to
check the reversible property on RunPython and the similar RunSQL.
|
|
Thanks to trac user nikunj.sg for the report.
|
|
its Context
Thanks to kezabelle for the report and original patch
and to numerodix for his improved patch.
|
|
|
|
language session key use
|
|
|
|
The new error message now hints that the most likely issue
is a circular import.
Thanks to trac user elena for the report and to
bpeschier for the original patch.
|
|
Refs #21725.
|
|
83a3add4bed8d8d49f93b30c817c66908b0a26ba.
Refs #22038.
|
|
Due to a mixup between text and bytes, iteration over
a File instance was broken under Python 3.
Thanks to trac user pdewacht for the report and patch.
|
|
Thanks Igor Mitrenko for the report.
|
|
Thanks to Objectivesea and Guttorm Flatabø (dittaeva)!
|
|
Thanks matklad for the report.
|
|
|
|
MemoryUploadedFile.
This provides better backwards compatibility for those constructing these
objects manually.
Refs #13721.
|
|
Instead of crashing with a CommandError, now a non-writable location
of mo files will only make compilemessages complain and continue.
Thanks Ramiro Morales for the review.
|
|
|
|
116d39842dab2569013856e9f3701a7cb6554f09.
This option is not actually very useful in the general case
because it doesn't override sys.stdin.
It's still marginally useful for testing some features of
the createsuperuser command so it was moved there.
This commit also makes the detection of a TTY in createsuperuser
a bit more robust, after a suggestion of appolo13.
|
|
|
|
And without causing a circular import. Thanks Akis Kesoglou for
the report.
|
|
correctly when M2M fields are present
|
|
Previously, doing so resulted in invalid data or crash.
Thanks jtiai for the report and Karol Jochelson,
Jakub Nowak, Loic Bistuer, and Baptiste Mispelon for reviews.
|
|
Thanks to trac user galaxy4sale for the original report
and to AeroNotix for the patch.
|
|
This makes testing certain features easier.
Thanks to AeroNotix for the original patch.
|
|
Fixed #22030 -- Don't assume that all fields have a swappable_setting at...
|
|
With this pull request, request #878 should considered closed.
Thanks to nvie for the patch.
|
|
That method was introduced in 9db4271bd11ac23a5a5652bbcdf8fb6d4b997651.
Refs #21765.
|
|
|
|
d97bf2e9c8971764690caaf81a0914bc368d6b02.
Refs #21765.
Thanks to kezabelle for the quick report and to onjin
for providing the patch.
|
|
|
|
|
|
Thanks to nedbatchelder for the report.
|
|
Commit 79558c78 cleaned up the (undocumented) interface of Resolver404
exception, which breaks compatibility with code messing with .args[0]
directly. Revert the cleanup part and simply leave the fix itself.
|
|
Thanks to mondone for fruitful colaboration.
|
|
|
|
Thanks brycenesbitt for the report.
|
|
|
|
When django.core.urlresolvers.resolve was called from a view, failed
and the exception was propagated and rendered by technical_404_response,
the URL mentioned on the page was the current URL instead of the URL
passed to resolve().
Fixed by using the path attribute from the Resolver404 exception instead
of request.path_info. Also cleaned up the exceptions to use standard
named parameters instead of stuffing a dict in args[0]
|
|
Thanks tunixman for the report and Baptiste Mispelon and
Shai Berger for reviews.
|
|
|
|
|
|
Flatten a level of sublists before checking for duplicate fields.
When given sublists such as:
```python
class FooAdmin(admin.ModelAdmin):
fields = ('one', ('one', 'two'))
```
The previous code did not correctly detect the duplicated 'one' field.
Thanks to jwa for the report.
|
|
|
|
Thanks apollo13: "reverse() shouldn't know about absolute/relative paths."
|