summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2013-03-01Fixed #19945 -- Fixed default User model Meta inheritance.matiasb
Updated default User model Meta class to extend AbstractUser Meta where translated verbose_name and verbose_name_plural are defined.
2013-03-01Removed unused options copy in flushClaude Paroz
This was used at the time the 'database' option did not default to DEFAULT_DB_ALIAS in make_option.
2013-03-01Fixed #18898 -- Added tests with a fix for ModelMultipleChoiceFieldClaude Paroz
2013-03-01Fixed #16612 -- Improved has_changed detection for localized field valuesClaude Paroz
Thanks Simon Charette for the review.
2013-02-28Fixed #19929 -- Improved error when MySQL doesn't have TZ definitions.Aymeric Augustin
Thanks tomas_00 for the report.
2013-02-28Fixed tests broken in 2ee21d9.Aymeric Augustin
2013-02-28Implemented persistent database connections.Aymeric Augustin
Thanks Anssi Kääriäinen and Karen Tracey for their inputs.
2013-02-28Fixed #5241 -- Kept active transalation in LocaleMiddleware.process_response.Aymeric Augustin
2013-02-28Fixed #12823 -- Was already fixed in master, tests addedAnssi Kääriäinen
Also added a little improvement to sql/query.py to get rid of non-necessary IS NOT NULL check.
2013-02-27Fixed two bugs in 59a35208.Aymeric Augustin
* StandardError doesn't exist any more under Python 3. * Python 2.6 still allows `raise "foo"`.
2013-02-27Refactored database exceptions wrapping.Aymeric Augustin
Squashed commit of the following: commit 2181d833ed1a2e422494738dcef311164c4e097e Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 27 14:28:39 2013 +0100 Fixed #15901 -- Wrapped all PEP-249 exceptions. commit 5476a5d93c19aa2f928c497d39ce6e33f52694e2 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 17:26:52 2013 +0100 Added PEP 3134 exception chaining. Thanks Jacob Kaplan-Moss for the suggestion. commit 9365fad0a650328002fb424457d675a273c95802 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 17:13:49 2013 +0100 Improved API for wrapping database errors. Thanks Alex Gaynor for the proposal. commit 1b463b765f2826f73a8d9266795cd5da4f8d5e9e Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 15:00:39 2013 +0100 Removed redundant exception wrapping. This is now taken care of by the cursor wrapper. commit 524bc7345a724bf526bdd2dd1bcf5ede67d6bb5c Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 14:55:10 2013 +0100 Wrapped database exceptions in the base backend. This covers the most common PEP-249 APIs: - Connection APIs: close(), commit(), rollback(), cursor() - Cursor APIs: callproc(), close(), execute(), executemany(), fetchone(), fetchmany(), fetchall(), nextset(). Fixed #19920. commit a66746bb5f0839f35543222787fce3b6a0d0a3ea Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Feb 26 14:53:34 2013 +0100 Added a wrap_database_exception context manager and decorator. It re-throws backend-specific exceptions using Django's common wrappers.
2013-02-27Fixed #19861 -- Transaction ._dirty flag improvementAnssi Kääriäinen
There were a couple of errors in ._dirty flag handling: * It started as None, but was never reset to None. * The _dirty flag was sometimes used to indicate if the connection was inside transaction management, but this was not done consistently. This also meant the flag had three separate values. * The None value had a special meaning, causing for example inability to commit() on new connection unless enter/leave tx management was done. * The _dirty was tracking "connection in transaction" state, but only in managed transactions. * Some tests never reset the transaction state of the used connection. * And some additional less important changes. This commit has some potential for regressions, but as the above list shows, the current situation isn't perfect either.
2013-02-27[py3] Always fed hashlib with bytes.Łukasz Langa
2013-02-26Move management helper function to new utils module.Ramiro Morales
This allows us to iremove an inter-command import.
2013-02-26Don't use os.system() in compilemessages.Ramiro Morales
Fixes #19584. This implies stop storing file path command line arguments in envvars as a security measure to start relying on with Popen's shell=False instead, and addition of an 'utils' module. Thanks kmichel_wgs for the report.
2013-02-26Merged contrib translations from 1.5 branchClaude Paroz
2013-02-26Merged core translations from 1.5 branchClaude Paroz
2013-02-25Fixed #18191 -- Don't consider Accept-Language redundantly in cache key.Łukasz Langa
Thanks to choongmin for the original patch.
2013-02-25Fixed #19634 -- Added proper __hash__ methods.Aymeric Augustin
Classes overriding __eq__ need a __hash__ such that equal objects have the same hash. Thanks akaariai for the report and regebro for the patch.
2013-02-25Fixed #18144 -- Restored compatibility with SHA1 hashes with empty salt.Aymeric Augustin
Thanks dahool for the report and initial version of the patch.
2013-02-25Fixed #19854 -- Turn Django's own Selenium tests off by default.Carl Meyer
2013-02-25Switching to autoescape is not a change in syntax.Carl Meyer
2013-02-25Remove leading underscore from a function that's all growed up now.Carl Meyer
This function is now the de facto standard function for rendering values in a template, and is imported by two other built-in template modules. It shouldn't have a leading underscore.
2013-02-24Fixed #19908 -- Added missing import in forms.pyClaude Paroz
Thanks loic84 for the report.
2013-02-24Merge pull request #824 from ambv/languagecodeJulien Phalip
2013-02-24Fixed some docstrings that were raising Sphinx warnings when running the ↵Julien Phalip
admindocs tests.
2013-02-24Fixed python 3 support. Refs #17320Florian Apolloner
2013-02-24Merge pull request #834 from vdboor/issue_19906_list_classesAymeric Augustin
Added column-<field_name> classes to the admin list
2013-02-24Add column-<field_name> classes to the admin listDiederik van der Boor
This simplifies CSS styling to set column widths.
2013-02-24Merge pull request #828 from zerok/tickets/17320Florian Apolloner
Fixed #17320 -- Added whitespace validation to Site.domain field
2013-02-24Fixed #19688 -- Allow model subclassing with a custom metaclass using ↵Simon Charette
six.with_metaclass
2013-02-24Fixed #19890 -- ifchanged templatetag rendered its content twiceChristopher Medrela
The content of ifchanged template tag was rendered twice: first time, to compare it with the previous value and the second time, to return the rendered output.
2013-02-24Fixed #17320 -- Added whitespace validation to the Site.domain fieldHorst Gutmann
2013-02-24Fixed #15849 -- Made IfChanged node thread safe.Diederik van der Boor
Previously, the ifchanged node stored state on `self._last_seen`, thereby giving undesired results when the node is reused by another thread at the same time (e.g. globally caching a Template object). Thanks to akaihola for the report and Diederik van der Boor and Bas Peschier for the patch.
2013-02-24Test case and docs for custom context data in feedsZbigniew Siciarz
Thanks Paul Winkler for the initial patch. (Ref #18112).
2013-02-24Merge pull request #717 from slurms/ticket_19746Florian Apolloner
Fixed #19746 -- Allow deserialization of pk-less data
2013-02-24Loaded cycle and firstof from future in built-in templates. Refs #17906.Aymeric Augustin
This was missing from f49e9a517f2fdc1d9ed7ac841ace77636cbd6747.
2013-02-24Fixes #19763 - LocaleMiddleware should check for supported languages in ↵Łukasz Langa
settings.LANGUAGE_CODE
2013-02-24Fixed #19253 -- Extracted template cache key building logicTomek Paczkowski
Introduced a public function django.core.cache.utils.make_template_fragment_key Thanks @chrismedrela for fruitful cooperation.
2013-02-24Fixed #9084 - Best approach for an OS to atomically rename the session file.Joeri Bekker
2013-02-24Merge pull request #819 from erikr/masterAymeric Augustin
Fixed #16302 -- Ensured contrib.comments is IPv6 capable.
2013-02-24Fixed #16302 -- Ensure contrib.comments is IPv6 capableErik Romijn
Changed the ip_address field for Comment to GenericIPAddressField. Added instructions to the release notes on how to update the schema of existing databases.
2013-02-24Fixed #19810 -- MemcachedCache now uses pickle.HIGHEST_PROTOCOLBas Peschier
2013-02-24Merge pull request #820 from viciu/11295Honza Král
Fixed #11295: If ModelAdmin.queryset returns a filtered QS don't require a 2nd count call
2013-02-24Fixed #18862 -- Honored script prefix in FlatPage.get_absolute_url.Aymeric Augustin
2013-02-24URL-encoded URLs in FlatPage.get_absolute_url.Aymeric Augustin
2013-02-24Fixed #11295: If ModelAdmin.queryset returns a filtered QS don't require a ↵Wiktor Kolodziej
2nd count call Original patch rewritten, added tests and get_filters_params method for ChangeList class. Thanks Alex for the report.
2013-02-24Merge pull request #817 from rybaktomasz/ticket_5568Honza Král
Fixes #5568 -- DROP INDEX subcommand
2013-02-24Revert "fixes #19263" - Fails if not SQLiteHonza Kral
This reverts commit 2b76f19f2b89ac96bae2a169d71b23553c8101c7.
2013-02-24Add sqldropindexes to manageTomasz Rybak
Change patch from https://code.djangoproject.com/ticket/5568 to work on modern Django. Add special case for MySQL which has different syntax for DROP INDEX. Add unit tests for the new functionality.