Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/admin/filters.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25320 -- Reverted ManyToManyField.null to False ↵Tim Graham2015-09-011-2/+10
| | | | | | for backwards compatibility. Thanks Tom Christie for the report and review.
* Fixed #24474 -- Allowed configuring the admin's empty ↵Loek van Gent2015-06-051-4/+4
| | | | change list value.
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-6/+5
|
* Revert "Fixed #24474 -- Allowed configuring the admin's ↵Tim Graham2015-04-091-4/+4
| | | | | | | | empty change list value." This reverts commit 72f769f494822981db6df9524b92a2d86f8e69fe. There are several test failures that need to be fixed.
* Fixed #24474 -- Allowed configuring the admin's empty ↵Loek van Gent2015-04-091-4/+4
| | | | change list value.
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-24/+5
| | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-6/+8
|
* Fixed #21414 -- Removed RelatedObject and deprecated ↵Anssi Kääriäinen2014-12-231-4/+4
| | | | Field.related.
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-2/+2
| | | | generators and dict comprehension
* Fixed #23055 -- Made generic admin filter obey ↵Ramiro Morales2014-08-301-1/+6
| | | | | | | ModelAdmin queryset. Thanks to Trac user synasius and to Ola Sitarska for helping in identifying the issue and helping with the test case.
* Fixed #16311 -- Added a RelatedOnlyFieldListFilter class ↵Stanislas Guerra2014-08-041-1/+10
| | | | in admin.filters.
* Fixed #19671 -- Added warnings that null and validators ↵Anubhav Joshi2014-07-091-2/+3
| | | | | | are ignored for ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-6/+6
|
* Fixed #21361 -- allowed access self.value() from ↵Vajrasky Kok2013-11-191-3/+3
| | | | | | SimpleListFilter lookup Reviewed by Chris Medrela.
* Started attackign the next flake8 violationAlex Gaynor2013-10-311-0/+1
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-6/+6
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-2/+2
|
* Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol2013-10-181-3/+2
|
* Fixed #21186: Fixed regression when using date fields in ↵Baptiste Mispelon2013-09-281-2/+7
| | | | | | | the admin's list_filter. Thanks to onlygoldi2201 for the report and to ramiro and apollo13 for the reviews.
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-161-1/+1
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor2013-09-101-5/+7
| | | | Thanks joseph at vertstudios.com for the suggestion.
* Fixed #20989 -- Removed useless explicit list ↵Simon Charette2013-08-301-2/+2
| | | | comprehensions.
* Fixed a number of minor misspellings.Julien Phalip2013-07-281-1/+1
|
* Replaced `and...or...` constructs with PEP 308 ↵Ramiro Morales2013-05-271-1/+1
| | | | conditional expressions.
* Fixed #19318 -- Ensured that the admin's ↵Sebastián Magrí2012-12-031-2/+2
| | | | SimpleListFilter options can be displayed as selected even if the lookup's first element is not a string.
* Fixed #18530 -- Fixed a small regression in the admin ↵Julien Phalip2012-09-161-3/+6
| | | | filters where wrongly formatted dates passed as url parameters caused an unhandled ValidationError. Thanks to david for the report.
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-4/+4
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* Fixed #17992 -- Added a public API for localtime.Aymeric Augustin2012-04-291-7/+3
| | | | Thanks Bradley Ayers for the report.
* Fixed #17972 -- Ensured that admin filters on a foreign ↵Julien Phalip2012-03-311-1/+4
| | | | | | key respect the `to_field` attribute. This fixes a regression introduced in [14674] and Django 1.3. Thanks to graveyboat and Karen Tracey for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17830 -- Modified list_filter on DateTimeFields ↵Aymeric Augustin2012-03-051-22/+28
| | | | | | to account for the new time zone support. Thanks Glenn Washburn for the report and Jannis Leidel for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17515 -- Added ability to override the template ↵Jannis Leidel2012-02-091-0/+1
| | | | | | of custom admin FilterSpec classes. Thanks, saxix and Julien Phalip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Disentangled some parts of the admin ChangeList and ↵Julien Phalip2011-11-221-71/+68
| | | | | | | | ListFilter's internals. With this refactoring, the query string lookups are now processed once instead of twice and some bugs (in particular the SimpleListFilter parameter name being mistaken for a model field in some cases) are avoided. Refs #17091. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15221 -- Made the admin filters on foreign key ↵Julien Phalip2011-10-161-6/+3
| | | | | | and m2m relationships display the related field's verbose name instead of that of the related model. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16991 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16906 -- Format datetimes with str/unicode ↵Aymeric Augustin2011-10-131-4/+4
| | | | | | | | | instead of strftime where possible: it's faster and it works for all dates. Also ensured that datetime_safe is used wherever strftime is called on dates/datetimes that may be before 1900. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15971 -- Fixed regression introduced in r16144 ↵Jannis Leidel2011-05-071-1/+1
| | | | | | that prevented the use of the field's verbose_name attribute. Thanks to mk and Julien. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15960 -- Extended list filer API added in r16144 ↵Jannis Leidel2011-05-051-3/+3
| | | | | | slightly to pass the current model admin to the SimpleListFilter.lookups method to support finer grained control over what is filtered over. Many thanks to Carl Meyer and Julien Phalip for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Corrected the behavior of the SimpleFilter.lookups ↵Jannis Leidel2011-05-031-1/+4
| | | | | | method to also be able to return None. Also modified example in documentation to be a bite more realistic. Refs #5833. Thanks for the hint, Martin Mahner. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5833 -- Modified the admin list filters to be ↵Jannis Leidel2011-05-031-0/+398
easier to customize. Many thanks to Honza Král, Tom X. Tobin, gerdemb, eandre, sciyoshi, bendavis78 and Julien Phalip for working on this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16144 bcc190cf-cafb-0310-a4f2-bffc1f526a37