summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2012-07-07Merge branch 'master' of github.com:django/djangoFlorian Apolloner
2012-07-07Fixed #18254 -- Added ability to the static template tags to store the ↵Jannis Leidel
result in a contextt variable. Many thanks to Andrei Antoukh for the initial patch.
2012-07-07Fixed a regression in the user admin page introduced in ↵Florian Apolloner
a92e7f37c4ae84b6b8d8016cc6783211e9047219. a92e7f37c4ae84b6b8d8016cc6783211e9047219 switched most of the internal stuff to format_html. Using format_html in the `render` method of `ReadOnlyPasswordHashWidget` caused it to generate `SafeString` instances. Later these safe strings where returned from `BoundField.__unicode__` which caused force_unicode to loose the "safe" information. This commit fixes that by ensuring that the render method returns `SafeUnicode` instead of `SafeString`.
2012-07-07Fixed #17257 - Removed outdated comment in syndication viewClaude Paroz
Thanks krzysiumed for the patch.
2012-07-06Merge pull request #176 from benspaulding/ticket_18521Adrian Holovaty
Add reST role to templates named in some view docs.
2012-07-06Fix copyright holderGuilherme Gondim
2012-07-06Fixed #18484 - 'display:none' on CSRF token div is redundant and causes ↵Luke Plant
problems with some browsers Thanks to hedleyroos for the report
2012-07-06Fixed #18572 - Python26 string format incompatibilityLuke Plant
Thanks to anonymous/AeroNotix for the report
2012-07-05Fixed #18330 - Made cache culling 3rd party db backend friendlyAnssi Kääriäinen
This is Ian Kelly's patch from #15580 with minor modifications.
2012-07-05Fixed #18362 - Made model.save() update_fields accept attnamesAndrei Antoukh
2012-07-04Correct Lithuanian short date format. kspi
2012-07-03Fixed incorrect URL to object on delete confirmation and history pageLuke Plant
2012-07-03Removed various unnecessary instances of mark_safe applied to URLsLuke Plant
Also fixed some test breakages introduced in last commit
2012-07-03Changed a lot of internal code to use 'format_html' where appropriate/possibleLuke Plant
2012-07-03Added 'format_html' utility for formatting HTML fragments safelyLuke Plant
2012-07-03Documented utils.html.escape and conditional_escapeLuke Plant
2012-07-03Fixed comment wording in sql/where.pyAnssi Kääriäinen
Thanks to Simon Charette for noticing this.
2012-07-01Fixed #18550 -- Ensured that the admin history view works with escaped ↵Julien Phalip
primary keys. Thanks to josh.oosterman for the report and patch.
2012-07-01Fixed a regression introduced in where.as_sql() refactorAnssi Kääriäinen
At least Oracle needs parentheses in negated where conditions, even if there is only single condition negated. Fixed this by reverting to old logic in that part of as_sql() and adding a comment about this. I did not investigate why the parentheses are needed. The original offending commit was bd283aa844b04651b7c8b4e85f48c6dced1678f0.
2012-07-01Fixed #16047 -- Restore autocommit state correctly on psycopg2Anssi Kääriäinen
When the postgresql_psycopg2 backend was used with DB-level autocommit mode enabled, after entering transaction management and then leaving it, the isolation level was never set back to autocommit mode. Thanks brodie for report and working on this issue.
2012-07-01Fixed some locations to work with autocommit=TrueAnssi Kääriäinen
- backends: supports_transactions() - select_for_update tests
2012-07-01Refactored the empty/full result logic in WhereNode.as_sql()Anssi Kääriäinen
Made sure the WhereNode.as_sql() handles various EmptyResultSet and FullResultSet conditions correctly. Also, got rid of the FullResultSet exception class. It is now represented by '', [] return value in the as_sql() methods.
2012-07-01Fixed #18251 -- Removed a deadlock possibility in apploadingAnssi Kääriäinen
Thanks to harm for the report and comments.
2012-06-30Fixed #16519 -- Deprecated mimetype kwarg of HttpResponse __init__Claude Paroz
This keyword was already deprecated in the code (supported for backwards compatibility only), but never formally deprecated. Thanks Paul McMillan for the report and yasar11732 for the initial patch.
2012-06-30Removed usage of mimetype kwarg of HttpResponseClaude Paroz
Refs #16519.
2012-06-30Isolated sitemaps test from ABSOLUTE_URL_OVERRIDESClaude Paroz
Refs #15988.
2012-06-30Fixed #12493 -- Deprecated auto-correction of TEMPLATE_DIRSClaude Paroz
2012-06-30Fixed #18102 -- Defined min/max_length on French localflavor form fieldsClaude Paroz
Thanks mothsART for the report and the initial patch.
2012-06-28Fixed #15197 -- Fixed yaml serialization into HttpResponseClaude Paroz
Thanks fourga38 for the report and hirokiky at gmail.com for the initial patch.
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-26Fixed #18465 -- Set date formats correctly on OracleJosh Smeaton
Correctly configure NLS_SESSION_PARAMETERS to format Date and DateTime on Oracle backend. Thanks to Josh Smeaton for report & patch.
2012-06-26Fixed #18515 -- Conditionally regenerated filename in FileField validationClaude Paroz
When a FileField value has been saved, a new validation should not regenerate a new filename when checking the length. Refs #9893.
2012-06-26Fixed #17485 -- Made defer work with select_relatedAnssi Kääriäinen
This commit tackles a couple of issues. First, in certain cases there were some mixups if field.attname or field.name should be deferred. Field.attname is now always used. Another issue tackled is a case where field is both deferred by .only(), and selected by select_related. This case is now an error. A lot of thanks to koniiiik (Michal Petrucha) for the patch, and to Andrei Antoukh for review.
2012-06-25Fixed #17966 -- Isolated ProfileTestCase from custom AUTH_PROFILE_MODULEClaude Paroz
Thanks Rob Golding for helping on the patch.
2012-06-24Fixed #16317 -- Fixed dumpdata for self-referencing models and natural keysClaude Paroz
Thanks aldaran for the patch.
2012-06-23Switch to using context managers for acquiring and releasing locks.Alex Gaynor
2012-06-23Don't use a list comprehension when we don't need the resulting list.Alex Gaynor
2012-06-23Fixed #18454 -- Added ability to pass a list of signals to `receiver`.Dmitry Medvinsky
Added ability to use receiver decorator in the following way: @receiver([post_save, post_delete], sender=MyModel) def signals_receiver(sender, **kwargs): ...
2012-06-22Corrected the `instance_dict` description for form wizards.Florian Apolloner
2012-06-22Fixed our HTMLParser patches for python 2.7.4Florian Apolloner
2012-06-22Fixed #17776 - DoesNotExist is not picklableLuke Plant
Thanks to ambv for the report
2012-06-19Fixed #15271 -- Defined a to_python method for GeometryFieldClaude Paroz
Thanks volrath and copelco for their work on the patch.
2012-06-19Add some field schema alteration methods and tests.Andrew Godwin
2012-06-19Added support for gdal 1.9.danger
2012-06-19Fixed #14502 again -- saner verbatim closing tokenChris Beaven
Previously, the closing token for the verbatim tag was specified as the first argument of the opening token. As pointed out by Jannis, this is a rather major departure from the core tag standard. The new method reflects how you can give a specific closing name to {% block %} tags.
2012-06-18Very start of schema alteration port. Create/delete model and some tests.Andrew Godwin
2012-06-18Fixed #18444 -- Replace hard coded "View on Site" URLsDaniel Hepper
2012-06-18Fixed #18450 -- Removed default values for i18n JavaScript URLs in Admin ↵Daniel Hepper
templates
2012-06-17Fixed GIS testsuite.Florian Apolloner
Moved HAS_SPATIALREFSYS back into the tests namespace since it only operates on the default database and isn't a global flag like HAS_GDAL.
2012-06-16Fixed #18420 -- Prevented the admin JS from crashing when the main form ↵Julien Phalip
contains no field. Thanks to maciej.maciaszek for the report and patch.