| Age | Commit message (Collapse) | Author |
|
Thanks to Henrik Levkowetz and olau for their reports and initial patches.
|
|
|
|
|
|
Cleanup/pep8 tests
|
|
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
|
Depending on the order of the tests beeing run, 10 can be a valid pk,
0 can never be a valid pk and as such we will get the wanted ValidationError.
|
|
model_to_dict() (used when rendering forms) queries the database
to get the list of primary keys for ManyToMany fields. This is
unnecessary if the field queryset has been prefetched, all the
keys are already in memory and can be obtained with a simple
iteration.
|
|
|
|
Fixed failing test around DST change.
|
|
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
|
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
|
|
|
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
|
The timezone arithmetic done in JS can be off by one hour around DST
change. We work around this issue by adding one extra hour to the test
error margin when we detect a DST change is near.
Refs #20663.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The regression was caused by ecaba3602837d1e02fe1e961f7d3bf9086453259
and affected OR connected filters.
|
|
All request methods of ``django.test.client.Client`` receive a ``secure``
argument that defaults to ``False`` indicating whether or not to make the
request through https.
Thanks Aymeric Augustin for the review.
|
|
Fixed #9523 -- Restart runserver after translation MO files change
|
|
Thanks to Claude Paroz for the original patch.
|
|
Thanks to Krzysztof Kulewski for the initial patch.
|
|
The ticket's issue was already fixed by patch for #14877.
|
|
When a formset contained deletion for an existing instance, and the
instance was already deleted, django threw an exception. A common cause for
this was resubmit of the formset.
Original patch by Trac alias olau.
In addition this commit cleaned some code in _construct_form(). This
was needed as the primary key value the user submitted wasn't converted
correctly to python value in case the primary key field was also a
related field.
|
|
|
|
|
|
* Missing tests for ticket #12744
* Tests for the cleanse_setting feature (leaving out sensitive
settings from the debug page)
|
|
Thanks to crass for the report.
|
|
|
|
``ModelAdmin.view_on_site`` defines wether to show a link to the object on the
admin detail page. If ``True``, cleverness (i.e. ``Model.get_absolute_url``) is
used to get the url. If it's a callable, the callable is called with the object
as the only parameter. If ``False``, not link is displayed.
With the aim of maitaining backwards compatibility, ``True`` is the default.
|
|
Compilation/extraction tests are now properly skipped when gettext
commands are unavailable.
|
|
Just moving around some tests to be more logically grouped.
|
|
We need to make sure content read from the file is decoded from UTF-8
right from the start so Python doesn't try to use another encoding
(read: ASCII/CP1252 under Windows.)
|
|
|
|
|
|
Refs #21271.
|
|
Thanks Tobias McNulty and Tim Graham for discussions and code review.
Thanks Andre Cruz the suggestion and initial patch.
|
|
Previously, when collecting static files, the files would receive permission
from FILE_UPLOAD_PERMISSIONS. Now, there's an option to give different
permission from uploaded files permission by subclassing any of the static
files storage classes and setting the file_permissions_mode parameter.
Thanks dblack at atlassian.com for the suggestion.
|
|
Thanks manfre for the report and Timo Graham for the review.
|
|
Added a refresh() before quit() in the selenium tests, since this
solves the problem of spurious test failures in some environments.
|
|
Previously there was a mixture of the two which resulted in inconsistent
casing.
|
|
|
|
|
|
Thanks jezdez for the suggestion.
|
|
|
|
Thanks Klas H for the report and claudep for the patch.
|
|
|