summaryrefslogtreecommitdiff
path: root/django/contrib/admin
AgeCommit message (Collapse)Author
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-12-07Removed unneeded string normalization in contrib.adminClaude Paroz
With Python 2.7 and up, named parameter keys are not limited to bytestrings any longer. This mainly reverts 3bd384aa626.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-25Fixed #20522 - Allowed use of partially validated object in ↵Jay Leadbetter
ModelAdmin.add_view formset validation. Updated ModelAdmin to use form.instance when passing parent model to child inlines for add_view. There is effectively no change in the change_view since the previously passed 'obj' is the same as form.instance. Thanks to meshy for report, and EvilDMP and timo for review.
2013-11-23Fixed #21445 -- Clean up misuse of null in quickElement.Baptiste Mispelon
Thanks to trac user parsch for the report.
2013-11-21Fixed #21405 -- Prevented queryset overwrite in BaseModelAdminClaude Paroz
Thanks guido@20tab.com for the report and Tim Graham for the analyze.
2013-11-21Removed isinstance(RelatedObject) checks from admin.utilsAnssi Kääriäinen
2013-11-21Fixed #21431 -- GenRel->FK list_filter regression in adminAnssi Kääriäinen
Report, analysis and tests from stephenmcd.
2013-11-21Refs #8261 -- Fixed regression introduced by fd219fa.Loic Bistuer
ModelAdmin displayed the "View on site" link even if the Model didn't define the `get_absolute_url()` method.
2013-11-19Fixed #21361 -- allowed access self.value() from SimpleListFilter lookupVajrasky Kok
Reviewed by Chris Medrela.
2013-11-18Optimise admin imagesCurtis Maloney
2013-11-11Fixed #21388 -- Corrected language code for FrisianBouke Haarsma
2013-11-03Fixed all E226 violationsAlex Gaynor
2013-11-03Fixed flake8 E251 violationsMilton Mazzarri
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-31Started attackign the next flake8 violationAlex Gaynor
2013-10-29Fixed #8261 -- ModelAdmin hook for customising the "show on site" buttonUnai Zalakain
``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.
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-24Fixed #21227 -- Added workaround for selenium test failuresKevin Christopher Henry
Added a refresh() before quit() in the selenium tests, since this solves the problem of spurious test failures in some environments.
2013-10-24Fixed #21299 - Changed filters from title to capfirst on admin inline formsets.Renato Oliveira
Previously there was a mixture of the two which resulted in inconsistent casing.
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-22Fixed E221 pep8 warnings.Tim Graham
2013-10-22Removed import * in tests.Tim Graham
Thanks to flake8 path/to/file.py | awk -F ' ' '{ print $5 }' | sort | uniq
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-10-17Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma
Thanks Aymeric Augustin for the suggestion.
2013-10-17Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol
2013-10-15Updated admin alert colorsRyan Allen
refs #21220.
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-10-09Fixed #19924 -- Fixed selectors in actions.js that did not use options.crccheck
2013-10-07Cleaned up admin CSS for consistency.Ryan Allen
* header selected twice -merged * match indentation throughout * color names to hex refs #21220.
2013-10-07Added min-width for date and time inputs in admin.Ryan Allen
refs #21220.
2013-10-07Revert "Fixed #21241 -- Avoid extraneous JOINs in admin changelist search."Simon Charette
This reverts commit 698dd82eee1cb83f51d4cd39546461bf76976b5e. The patch introduced a backward incompatible change.
2013-10-07Added a link in admin branding block to admin index.Ryan Allen
Refs #13749 and #21220.
2013-10-07Fixed #21241 -- Avoid extraneous JOINs in admin changelist search.Chris Adams
2013-10-07Fixed #18263 -- Corrrected handling of hidden fields in tabular admin inlines.Tim Graham
Thanks hvdklauw for the report and patch.
2013-10-04Fixed #11277 -- Hid labels of fields with HiddenInput widget in admin forms.Christopher Medrela
Thanks bartTC for the report.
2013-10-03Fixed #19182 -- Fixed ModelAdmin.lookup_allowed to work with ('fieldname', ↵Anentropic
SimpleListFilter) syntax. Thanks gauss for the report.
2013-10-02Fixed #21129 -- Prevented admin filter params modifications from throwing an ↵tschilling
exception. Thanks Tuttle for the report.
2013-10-01Fixed #15185 -- Allowed ModelAdmin.list_display_links=None to disable change ↵Ramiro Morales
list links. Thanks rm_ for the suggestion.
2013-09-28Fixed #21186: Fixed regression when using date fields in the admin's ↵Baptiste Mispelon
list_filter. Thanks to onlygoldi2201 for the report and to ramiro and apollo13 for the reviews.
2013-09-20Fixed #20702 -- Deprecated get_formsets in favor of get_formsets_with_inlines.tschilling
Thanks stanislas.guerra at gmail.com for the report.
2013-09-19Fixed typo in exception message; refs #19414Tim Graham
Thanks Alexey Boriskin for the report.
2013-09-18Fixed #19414 -- Added admin registration decoratorBrian Holdefehr
Thanks stavros for the suggestion.
2013-09-17Destroy selenium before live server threads.Florian Apolloner
Ensure that selenium quits before the live server thread to prevent occasional hangs when killing the live server.
2013-09-17Final attempt to solve sporadic test failures.Florian Apolloner
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.