summaryrefslogtreecommitdiff
path: root/tests/generic_views
AgeCommit message (Collapse)Author
2015-02-09[1.8.x] Sorted imports with isort; refs #23860.Tim Graham
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2015-02-03[1.8.x] Fixed #24263 -- Prevented extra queries on BaseDateDetailView with a ↵Tim Graham
custom queryset. Thanks jekka-ua for the report and patch. Backport of 118b11221f7f632b4d0e6e976c87f563746ec211 from master
2015-02-03[1.8.x] Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin
Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review. Backport of 2133f31 from master. Conflicts: docs/topics/http/shortcuts.txt tests/generic_views/test_base.py
2015-01-26[1.8.x] Fixed #24220 - Allowed lazy objects for success_urlTomáš Ehrlich
Backport of 511be35779a98427387d9aa4abacce01dedd7272 from master
2015-01-12Fixed #24133 -- Replaced formatting syntax in success_url placeholdersClaude Paroz
Thanks Laurent Payot for the report, and Markus Holtermann, Tim Graham for the reviews.
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-12Refs #23943 -- Removed an invalid generic_views test.Tim Graham
Using PUT as a method for the form element is no longer supported as described in the ticket.
2014-11-29Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.pyTim Graham
2014-11-25Fixed #21587 -- Added a warning for changing default of RedirectView.permanent.Berker Peksag
2014-11-21Fixed #21753 -- Raised exception when both `form_class` and `fields` are ↵Berker Peksag
specified.
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-10-30Fixed #23656 -- Made FormMixin.get_form's form_class argument optional.Simon Charette
Thanks Tim Graham for the review.
2014-10-02Fixed #23482 -- Added SingleObjectMixin.query_pk_and_slugJon Dufresne
Enabling the attribute causes get_object() to perform its lookup using both the primary key and the slug.
2014-08-15Fixed #18355 -- Added ordering options to list based generic views.Peter Harley
Added MultipleObjectMixin.ordering and get_ordering(). Refs #21450.
2014-08-12Updated tests for added newlines in 68686430638215b5405b20bd767c0be392c9221d.Tim Graham
2014-08-12Added newlines to the ends of CSS, HTML, and JavaScript files missing them.Trey Hunner
2014-08-12Fixed #23276 -- Deprecated passing views as strings to url().Tim Graham
2014-04-16Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of docs and tests.chriscauley
Thanks tomwys for the suggestion.
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-22Made ModelForms raise ImproperlyConfigured if the list of fields is not ↵Tim Graham
specified. Also applies to modelform(set)_factory and generic model views. refs #19733.
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-02-09Fixed #21967: Added check for object in ModelFormMixin.get_form_kwargs.Ryan Kaskel
Thanks lagovas.lagovas at gmail.com for the report.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-16Fixed #21564 -- Use local request object when possible in generic views.Baptiste Mispelon
Thanks to trac user adepue for the report and original patch.
2013-12-15Fixed #21619 -- Made SingleObjectMixin.get_object catch a more precise ↵Peter Harley
exception. Thanks to Keryn Knight for the report.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed flake8 E241Boryslav Larin
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
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-01Factorized requires_tz_support decorator in test utilsClaude Paroz
Thanks Aymeric Augustin for the suggestion. Refs #21165.
2013-09-06fixed test name from an old, overly specific iteration of the testIan Wilson
2013-09-06adds fix for SingleObjectTemplateResponseMixin raising a ↵Ian Wilson
TemplateDoesNotExist when it should have raised an ImproperlyConfigured. fixes 16502. by @ianawilson, @jambonrose
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-06-29Advanced deprecation warnings for Django 1.7.Aymeric Augustin
2013-06-22Fixed #18872 -- Added prefix to FormMixinGilberto Gonçalves
Thanks @ibustama for the initial patch and dragonsnaker for opening the report.
2013-06-14Fixed #15273 -- Extend RedirectView to allow reversal by name.Marc Tamlyn
Thanks to @DrMeers for the report and @ludwigkraatz for the initial patch.
2013-05-22Fixed #20478 – Added support for HTTP PATCH method in generic views.Krzysztof Jurewicz
2013-05-21Use assertIsInstance in tests.Marc Tamlyn
Gives much nicer errors when it fails.
2013-05-18Fixed #20234 and #20236 -- SingleObjectMixin fixesKarol Sikora
Added object on SingleObjectMixin returned context, some code clanup.
2013-05-18Fixed #20235 -- Use self.object_list if object_list not present in ↵Matthew Somerville
get_context_data kwargs. This is so MultipleObjectMixin can be used in the same way as SingleObjectMixin.
2013-05-10Fixed #17365, #17366, #18727 -- Switched to discovery test runner.Carl Meyer
Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
2013-05-09Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant
added '__all__' shortcut This also updates all dependent functionality, including modelform_factory and modelformset_factory, and the generic views `ModelFormMixin`, `CreateView` and `UpdateView` which gain a new `fields` attribute.
2013-04-12Modified generic_views for unittest2 discovery.Preston Timmons
2013-03-19Fixed #16319 -- added SuccessMessageMixin to contrib.messagesPaul Collins
Thanks martinogden for the initial patch and d1ffuz0r for tests.