Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 2 | -3/+0 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Refs #33263 -- Removed warning in BaseDeleteView when delete() method is ↵ | Mariusz Felisiak | 2023-01-17 | 1 | -25/+1 |
| | | | | overridden. | ||||
* | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | 2022-10-08 | 1 | -17/+17 |
| | | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | ||||
* | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | 2022-03-24 | 1 | -13/+36 |
| | | | | | Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -5/+10 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 9 | -1080/+1465 |
| | |||||
* | Refs #33263 -- Added warning to BaseDeleteView when delete() method is ↵ | Mariusz Felisiak | 2021-11-09 | 1 | -1/+22 |
| | | | | | overridden. Follow up to 3a45fea0832c5910acee6e0d29f230f347a50462. | ||||
* | Refs #32956 -- Capitalized HTTP/HTTPS in comments, docs, and docstrings. | David Smith | 2021-10-20 | 1 | -1/+1 |
| | |||||
* | Refs #32956 -- Changed docs to treat the acronym HTTP phonetically. | David Smith | 2021-10-18 | 1 | -2/+3 |
| | |||||
* | Fixed #21936 -- Allowed DeleteView to work with custom Forms and ↵ | Carlton Gibson | 2021-07-14 | 4 | -1/+51 |
| | | | | | | | | | SuccessMessageMixin. Thanks to Mariusz Felisiak for review. Co-authored-by: Demetris Stavrou <demestav@gmail.com> Co-authored-by: Caroline Simpson <github@hoojiboo.com> | ||||
* | Fixed #32260 -- Made View.as_view() do not use update_wrapper(). | Daniyal | 2021-03-30 | 1 | -6/+10 |
| | | | | | | | | | | | View.as_view() should not use update_wrapper() for copying attributes it's unintended and have side-effects such as adding `self` to the signature. This also fixes system check for arguments of custom error handler views with class-based views. Co-authored-by: Nick Pope <nick.pope@flightdataservices.com> | ||||
* | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | 2020-11-06 | 1 | -12/+12 |
| | | | | | | | | This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #31789 -- Added a new headers interface to HttpResponse. | Tom Carrick | 2020-09-14 | 1 | -5/+5 |
| | |||||
* | Fixed #31877 -- Reverted "Fixed #19878 -- Deprecated TemplateView passing ↵ | Mariusz Felisiak | 2020-08-24 | 2 | -43/+21 |
| | | | | | | URL kwargs into context." This reverts commit 4ed534758cb6a11df9f49baddecca5a6cdda9311. | ||||
* | Refs #31877 -- Reverted "Fixes #31877 -- Used lazy() for TemplateView kwarg ↵ | Mariusz Felisiak | 2020-08-24 | 1 | -20/+2 |
| | | | | | | deprecation warning." This reverts commit 20799cc0a6d98816b9ef0577e24691bd26b80d7d. | ||||
* | Fixes #31877 -- Used lazy() for TemplateView kwarg deprecation warning. | Adam Johnson | 2020-08-13 | 1 | -2/+20 |
| | | | | | | | SimpleLazyObjects cause a crash when filtering. Thanks Tim L. White for the report. Regression in 4ed534758cb6a11df9f49baddecca5a6cdda9311. | ||||
* | Fixed #31620 -- Added support for %V format to WeekMixin/WeekArchiveView. | Hasan Ramezani | 2020-06-26 | 2 | -1/+28 |
| | | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #19878 -- Deprecated TemplateView passing URL kwargs into context. | Adam Johnson | 2020-03-23 | 2 | -21/+43 |
| | |||||
* | Removed "Don't do that" from docs and error messages. | Adam Johnson | 2020-01-06 | 1 | -2/+2 |
| | | | | It's slightly aggressive and doesn't explain itself. | ||||
* | Refs #20456 -- Moved initialization of HEAD method based on GET to the ↵ | Felipe Lee | 2019-10-30 | 1 | -0/+7 |
| | | | | | | | | View.setup() for generic views. This will ease unit testing of views since setup will essentially do everything needed to set the view instance up (other than instantiating it). Credit for idea goes to Vincent Prouillet. | ||||
* | Refs #20456 -- Added test for initialization of request/args/kwargs ↵ | Felipe Lee | 2019-10-30 | 1 | -0/+11 |
| | | | | attributes in View.Setup(). | ||||
* | Fixed typo in tests/generic_views/test_base.py. | Tim Graham | 2019-06-04 | 1 | -1/+1 |
| | |||||
* | Fixed #29750 -- Added View.setup() hook for class-based views. | François Freitag | 2018-12-21 | 1 | -0/+26 |
| | |||||
* | Tested exception messages in generic_views tests. | François Freitag | 2018-12-04 | 1 | -10/+24 |
| | |||||
* | Made reused RequestFactory instances class attributes. | Simon Charette | 2018-11-27 | 1 | -4/+5 |
| | |||||
* | Moved duplicate author declarations to setUpTestData() in DeleteViewTests. | oliver | 2018-11-13 | 1 | -22/+20 |
| | |||||
* | Moved duplicate author declarations to setUpTestData() in UpdateViewTests. | oliver | 2018-11-09 | 1 | -42/+24 |
| | |||||
* | Increased test coverage of django/views/generic/dates.py. | Hasan Ramezani | 2018-10-30 | 3 | -2/+19 |
| | |||||
* | Fixed #29903 -- Added error message for invalid WeekArchiveView week_format. | Hasan Ramezani | 2018-10-29 | 2 | -0/+8 |
| | |||||
* | Added test coverage for views.generic.dates.MonthMixin.get_month() KeyError ↵ | Hasan Ramezani | 2018-10-27 | 2 | -0/+15 |
| | | | | branch. | ||||
* | Improved generic detail view error message for when pk or slug is missing. | Vincent Poulailleau | 2018-01-17 | 1 | -1/+5 |
| | |||||
* | Fixed #28719 -- Added a helpful exception if ↵ | Bjorn Kristinsson | 2017-11-07 | 3 | -0/+17 |
| | | | | MultipleObjectTemplateResponseMixin doesn't generate any template names. | ||||
* | Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201. | Sjoerd Job Postmus | 2017-09-20 | 1 | -254/+178 |
| | | | | | | Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs. | ||||
* | Fixed #28082 -- Made BaseDateListView pass context from get_dated_items() to ↵ | Sebastian Sassi | 2017-09-04 | 1 | -0/+17 |
| | | | | | | subclasses. Thanks leon-matthews for the report and fix. | ||||
* | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | 2017-07-29 | 5 | -11/+32 |
| | |||||
* | Fixed #28331 -- Added ContextMixin.extra_context to allowing passing context ↵ | Bruno Alla | 2017-07-06 | 2 | -0/+6 |
| | | | | in as_view(). | ||||
* | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | 2017-06-01 | 1 | -2/+1 |
| | |||||
* | Fixed #28209 -- Made date-based generic views return a 404 rather than crash ↵ | Adit Biswas | 2017-05-30 | 1 | -0/+12 |
| | | | | when given an out of range date. | ||||
* | Decreased max_length for char fields unless absolutely needed. (#8485) | Florian Apolloner | 2017-05-10 | 1 | -2/+2 |
| | |||||
* | Fixed #26911 -- Removed NoReverseMatch silencing in RedirectView. | Grzegorz Tężycki | 2017-03-01 | 1 | -5/+0 |
| | |||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 2 | -16/+7 |
| | |||||
* | Refs #23919 -- Removed unneeded force_str calls | Claude Paroz | 2017-01-20 | 1 | -2/+1 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 2 | -4/+4 |
| | |||||
* | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | 2017-01-18 | 1 | -4/+0 |
| | |||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 8 | -20/+0 |
| | |||||
* | Imported specific models in a few tests that didn't. | Tim Graham | 2016-12-08 | 1 | -3/+4 |
| | |||||
* | Fixed E305 flake8 warnings. | Ramin Farajpour Cami | 2016-11-14 | 1 | -0/+1 |
| | |||||
* | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | 2016-11-10 | 3 | -13/+12 |
| | |||||
* | Replaced use of TestCase.fail() with assertRaises(). | Tim Graham | 2016-06-28 | 1 | -8/+2 |
| | | | Also removed try/except/fail antipattern that hides exceptions. | ||||
* | Refs #17209 -- Added LoginView and LogoutView class-based views | Claude Paroz | 2016-06-24 | 1 | -1/+1 |
| | | | | Thanks Tim Graham for the review. |