summaryrefslogtreecommitdiff
path: root/tests/get_object_or_404
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-3/+12
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-25/+16
|
* Fixed #33298 -- Added docs and tests for using Q objects with ↵mgaligniana2021-11-241-0/+18
| | | | get_object_or_404()/get_list_or_404().
* Refs #32956 -- Changed docs to treat the acronym HTTP phonetically.David Smith2021-10-181-3/+3
|
* Removed unused __str__() methods in tests models.Author: Mads Jensen2020-04-151-6/+0
| | | | | Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
* Fixed #29135 -- Prevented get_object/list_or_404() from hiding ↵dizballanze2018-02-192-0/+16
| | | | AttributeError raised by QuerySet filtering.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #23919 -- Removed unneeded str() callsClaude Paroz2017-01-201-1/+1
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-3/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #10532 -- Relaxed hard-type checking in get_object/list_or_404 shortcutsClaude Paroz2016-03-291-3/+3
| | | | Thanks Anssi Kääriäinen for the patch suggestion, and Tim Graham for the review.
* Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan2016-01-291-18/+9
|
* Refs #26022 -- Used context manager version of assertRaises in tests.Hasan2016-01-291-17/+10
|
* Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham2015-10-271-1/+1
| | | | related set.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+2
|
* Removed numbering from the models.py header of some test packages.Loic Bistuer2014-09-241-1/+1
| | | | This is a reliqua from the early days of the modeltests/regressiontests era.
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-7/+14
|
* PEP8 cleanupJason Myers2013-11-021-0/+2
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Removed most of absolute_import importsClaude Paroz2013-07-291-2/+2
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer2013-03-081-2/+2
| | | | return a QuerySet.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+143