summaryrefslogtreecommitdiff
path: root/django/views
AgeCommit message (Collapse)Author
2013-01-26Fixed #16123 -- Ensured strptime receive proper string typeClaude Paroz
strptime generates an UnicodeEncodeError when using a non-ascii unicode string on Python 2.
2013-01-24Minor optimization in the static serve view.Aymeric Augustin
2012-12-31Fixed #19453 -- Ensured that the decorated function's arguments are ↵Julien Phalip
obfuscated in the @sensitive_variables decorator's frame, in case the variables associated with those arguments were meant to be obfuscated from the decorated function's frame. Thanks to vzima for the report.
2012-12-29Removed csrf_response_exempt and csrf_view_exempt.Aymeric Augustin
2012-12-29Removed legacy ways of calling cache_page.Aymeric Augustin
2012-12-10Fixed #18856 -- Ensured that redirects can't be poisoned by malicious users.Florian Apolloner
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-12-04Fixed #19378 -- Ensured get_success_url returns a non-lazy URLClaude Paroz
2012-11-22Fixed #19316 -- Set View args/kwargs/request before dispatchGeorge Hickman
2012-11-22Clarified usage of as_view kwargs for setting arguments on class based viewsTim Graham
Thanks Dave McLain for the patch.
2012-11-21Add orphans support to MultipleObjectMixinChris Beaven
Fixes #7005
2012-11-17Merge pull request #467 from tomchristie/page-kwargJannis Leidel
Add 'page_kwarg' attribute to `MultipleObjectMixin`, removing hardcoded "page".
2012-11-17Fixed #19136 -- Properly escape gettext context prefixes in the i18n ↵Jannis Leidel
JavaScript view template.
2012-11-04Fixed py3 compatibility for 5a00a57aa591c766f5ee1d8c59b64618d74fe191Preston Holmes
2012-11-04Fixed #19240 -- include pagination error details in ListView 404Preston Holmes
Thanks to seawolf for the patch
2012-10-26PEP 302 source loaders already decode appropriatelyIan Clelland
2012-10-25Add 'page_kwarg' attribute to `MultipleObjectMixin`, removing hardcoded 'page'.Tom Christie
2012-10-20Fixed #7581 -- Added streaming responses.Aymeric Augustin
Thanks mrmachine and everyone else involved on this long-standing ticket.
2012-10-08[py3] Decoded the parsed source file encoding in debug viewClaude Paroz
2012-09-30Fixed #18807 -- Made 404.html and 500.html optionalClaude Paroz
Thanks Aymeric Augustin for the report and Jannis Leidel for the review.
2012-09-28Made more extensive use of get_current_siteClaude Paroz
Refs #15089
2012-09-26Fixed #18675 -- Fixed was_modified_since with floating-point mtimeClaude Paroz
Thanks Simon Charette for the patch.
2012-09-22Fixed #16218 -- date_list order in generic CBVs.Aymeric Augustin
Thanks nnrcschmdt for the report and bpeschier for the initial version of the patch.
2012-09-20Imported getLogger directly from logging moduleClaude Paroz
This was a remainder of some 2.4 compatibility code.
2012-09-08Updated docs for dates generic views.Aymeric Augustin
Fixes #18245. Refs #3542.
2012-08-29Replaced many smart_bytes by force_bytesClaude Paroz
In all those occurrences, we didn't care about preserving the lazy status of the strings, but we really wanted to obtain a real bytestring.
2012-08-22Fixed #11340 -- Prevented HttpResponseNotModified to have content/content-typeClaude Paroz
The HTTP 1.1 spec tells that the 304 response MUST NOT contain a message body. Thanks aparajita for the report.
2012-08-18Fixed #3542 -- Add support for changing granularity on ArchiveView.Marc Tamlyn
Resolving the concept from a very old ticket in a more class-based-view manner.
2012-08-18Fixed #17228 -- params context variable is inconsistentMarc Tamlyn
Remove the params variable from the context and just put the variables in directly. This had not been committed previously as the original pattern was used in the functional generic views and we wanted consistency between them, but django.views.generic.simple.direct_to_template is now gone so we can do it 'right'.
2012-08-18Fixed #16744 -- Class based view should have the view object in the contextMarc Tamlyn
Updated the most recent patch from @claudep to apply again and updated the documentation location.
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* 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.
2012-08-07[py3] Fixed access to dict keys/values/items.Aymeric Augustin
2012-07-25Fixed error message in detail generic view.Florian Apolloner
Thanks go to mitar for the report and the patch.
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Replaced basestring by six.string_types.Aymeric Augustin
2012-07-06Merge pull request #176 from benspaulding/ticket_18521Adrian Holovaty
Add reST role to templates named in some view docs.
2012-06-30Removed usage of mimetype kwarg of HttpResponseClaude Paroz
Refs #16519.
2012-06-26Add reST role to templates named in some view docs.Ben Spaulding
This makes the templates link up correctly in the admindocs.
2012-06-11Fixed #18451 -- Vastly improved class based view documentation.Jannis Leidel
Many thanks to Daniel Greenfeld, James Aylett, Marc Tamlyn, Simon Williams, Danilo Bargen and Luke Plant for their work on this.
2012-06-09Fixed #16418 -- Made generic views work with ModelFormsAnssi Kääriäinen
Generic views assumed any object's _meta will be model Options. This is not true for ModelForms for example. Took isinstance(obj, Model) in use instead.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-03Fixed #17138 -- Made the sensitive_variables decorator work with object methods.Julien Phalip
2012-05-24Removed unneeded smart_str in generic views.Claude Paroz
2012-05-24Fixed #18353 -- Inconsistency in date-based CBVs.Aymeric Augustin
2012-05-22Fixed #18113 -- Corrected get_template_names docstrings.Claude Paroz
Thanks Keryn Knight for the report.
2012-05-20Fixed #18354 -- Performance issue in CBV.Aymeric Augustin
Prevented repeating a query twice when the model isn't ordered by -date_field (in Meta), allow_empty is False and pagination isn't enabled.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-05-17Fixed #18323 -- Refactored date arithmeticAymeric Augustin
in date based generic views, in order to deal properly with both DateFields and DateTimeFields.
2012-05-17Fixed #17449 -- Added OPTIONS to generic views.Aymeric Augustin
Thanks estebistec for the report and patch.