Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/views
Commit message (Collapse)AuthorAgeFilesLines
...
* Deprecated TEMPLATE_LOADERS.Aymeric Augustin2014-12-281-3/+3
|
* Updated link to CSRF docsClaude Paroz2014-12-251-2/+2
| | | | Refs #23866.
* Fixed #23866 -- Harmonized refs to Django documentation ↵Claude Paroz2014-12-251-2/+4
| | | | from code
* Fixed #22461 -- Added if-unmodified-since support to the ↵Thomas Tanner2014-12-241-29/+35
| | | | condition decorator.
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-1/+1
| | | | generators and dict comprehension
* Corrected deprecation warnings for RedirectView; refs ↵Berker Peksag2014-11-281-1/+14
| | | | #21587.
* Fixed #21587 -- Added a warning for changing default of ↵Berker Peksag2014-11-251-2/+16
| | | | RedirectView.permanent.
* Removed direct references to template-related settings.Aymeric Augustin2014-11-231-3/+5
|
* Moved template loaders management in Engine.Aymeric Augustin2014-11-231-2/+3
| | | | | | | | | | | Passed the engine instance to loaders. This is a prerequisite for looking up configuration on the engine instance instead of global settings. This is backwards incompatible for custom template loaders that override __init__. However the documentation doesn't talk about __init__ and the way to pass arguments to custom template loaders isn't specified. I'm considering it a private API.
* Fix another flake8 warning.Carl Meyer2014-11-221-2/+2
| | | | | | I don't agree with flake8 here about the right indentation, but as long as we're using it, we should stick to it. I don't want to disable its hanging indent checks just because of this case.
* Fixed #21753 -- Raised exception when both `form_class` ↵Berker Peksag2014-11-211-0/+4
| | | | and `fields` are specified.
* Simplified caching of the default exception reporter filter.Aymeric Augustin2014-11-191-11/+8
| | | | | Also simplified the logic under the assumption that a false-ish object won't have an exception_reporter_filter attribute.
* Refactored getting the list of template loaders.Aymeric Augustin2014-11-161-6/+8
| | | | | This provides the opportunity to move utility functions specific to the Django Template Language outside of django.template.loader.
* Fixed #23656 -- Made FormMixin.get_form's form_class ↵Simon Charette2014-10-311-6/+32
| | | | | | argument optional. Thanks Tim Graham for the review.
* Fixed #23695 -- Made condition decorator work for HEAD ↵Anton Novosyolov2014-10-211-1/+1
| | | | requests without ETag.
* Fixed #23482 -- Added SingleObjectMixin.query_pk_and_slugJon Dufresne2014-10-021-2/+3
| | | | | Enabling the attribute causes get_object() to perform its lookup using both the primary key and the slug.
* Limited lines to 119 characters in django/Tim Graham2014-09-054-25/+67
| | | | refs #23395.
* Fixed #18355 -- Added ordering options to list based ↵Peter Harley2014-08-152-6/+24
| | | | | | | | generic views. Added MultipleObjectMixin.ordering and get_ordering(). Refs #21450.
* Fixed #20368 -- Made TECHNICAL_500 more robust against ↵Walter Doekes2014-08-131-1/+11
| | | | | | bad input. This limits large variables and avoids non-utf-8 in the TECHNICAL_500 output.
* Fixed #23276 -- Deprecated passing views as strings to ↵Tim Graham2014-08-121-1/+3
| | | | url().
* Fixed code to solve #23070 problemHiroki KIYOHARA2014-07-261-1/+15
| | | | | | | | Added a class to wrap callable in settings: * Not to call in the debug page (#21345). * Not to break the debug page if the callable forbidding to set attributes (#23070). Thanks @bmispelon for giving me some advice.
* Fixed #22756 -- Added view name to technical 404 ↵Julia Matsieva2014-06-301-1/+26
| | | | | | template if Http404 is raised. Thanks Keryn Knight for the suggestion.
* Fixed #21668 -- Return detailed error page when ↵Anubhav Joshi2014-06-241-7/+7
| | | | | | | | SuspiciousOperation is raised and DEBUG=True Thanks GDorn and gox21 for report. Thanks Tim Graham for idea and review.
* Prevented markup escape in 'Welcome to Django' pageClaude Paroz2014-06-121-2/+2
| | | | | Fixes a regression introduced in 5f24cf9705. Refs #22635. Thanks A.J. May for spotting the regression.
* Fixed #22635 -- Made "It worked!" page localizable.Markus Amalthea Magnuson2014-05-191-8/+17
|
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-262-2/+2
|
* Fixed #22306 -- Deprecated future versions of cycle and ↵Maxime Turcotte2014-03-281-1/+1
| | | | firstof template tags.
* Made ModelForms raise ImproperlyConfigured if the list ↵Tim Graham2014-03-221-6/+4
| | | | | | | | of fields is not specified. Also applies to modelform(set)_factory and generic model views. refs #19733.
* Removed django.views.defaults.shortcut and ↵Tim Graham2014-03-211-12/+0
| | | | django.conf.urls.shortcut per deprecation timeline.
* Removed contrib.comments per deprecation timeline.Tim Graham2014-03-211-1/+1
|
* Fixed #21188 -- Introduced subclasses for ↵Claude Paroz2014-03-082-3/+5
| | | | | | | to-be-removed-in-django-XX warnings Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* Fixed #15318 -- Added settings for language cookie ↵Sergey Kolosov2014-03-011-1/+4
| | | | | | | | | | max-age, path, domain Introduced a number of settings to configure max-age, path, and domain for the language cookie: LANGUAGE_COOKIE_AGE, LANGUAGE_COOKIE_PATH and LANGUAGE_COOKIE_DOMAIN. Thanks sahid for the suggestion.
* Fixed #22113 -- changed object_name to model_name in CBV ↵Marcin Sokół2014-02-221-1/+1
| | | | | | docs. Thanks to trac user nikunj.sg for the report.
* Fixed #22120 -- Documented persistent activation of ↵Erik Romijn2014-02-221-2/+2
| | | | languages and cleaned up language session key use
* Corrected a pair of flake8 violationsAlex Gaynor2014-02-151-1/+1
|
* Improved fix for #18373 -- backward compatibilityGrzegorz Nosek2014-02-151-4/+7
| | | | | | Commit 79558c78 cleaned up the (undocumented) interface of Resolver404 exception, which breaks compatibility with code messing with .args[0] directly. Revert the cleanup part and simply leave the fix itself.
* Fixed some flake8 errors from recent commits.Tim Graham2014-02-151-1/+1
|
* Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek2014-02-151-3/+5
| | | | | | | | | | | When django.core.urlresolvers.resolve was called from a view, failed and the exception was propagated and rendered by technical_404_response, the URL mentioned on the page was the current URL instead of the URL passed to resolve(). Fixed by using the path attribute from the Resolver404 exception instead of request.path_info. Also cleaned up the exceptions to use standard named parameters instead of stuffing a dict in args[0]
* Fixed #21967: Added check for object in ↵Ryan Kaskel2014-02-091-1/+2
| | | | | | ModelFormMixin.get_form_kwargs. Thanks lagovas.lagovas at gmail.com for the report.
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-2/+2
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Moved RequestSite and get_current_site.Aymeric Augustin2014-01-261-1/+1
| | | | | | | | | Following the app-loading refactor, these objects must live outside of django.contrib.sites.models because they must be available without importing the django.contrib.sites.models module when django.contrib.sites isn't installed. Refs #21680. Thanks Carl and Loic for reporting this issue.
* Fixed typo in docstrings of MonthArchiveViews.Michael Blatherwick2014-01-101-2/+2
|
* Used app_label instead of appname.Aymeric Augustin2013-12-281-1/+1
| | | | | | | The last component of the dotted path to the application module is consistently referenced as the application "label". For instance it's AppConfig.label. appname could be confused with AppConfig.name, which is the full dotted path.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-2/+2
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Stopped iterating on INSTALLED_APPS.Aymeric Augustin2013-12-221-1/+5
| | | | Used the app cache's get_app_configs() method instead.
* Fixed #21564 -- Use local request object when possible ↵Baptiste Mispelon2013-12-161-3/+3
| | | | | | in generic views. Thanks to trac user adepue for the report and original patch.
* Fixed #21619 -- Made SingleObjectMixin.get_object catch ↵Peter Harley2013-12-151-2/+2
| | | | | | a more precise exception. Thanks to Keryn Knight for the report.
* Fixed #21530 -- Prevent AttributeError in default ↵Baptiste Mispelon2013-12-071-1/+1
| | | | | | | URLconf detection code. Thanks to @dmyerscoug for the report and original patch and to @alasdairnicol for the added tests.
* Fixed E125 pep8 warningsChristopher Medrela2013-11-282-4/+4
|