summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2013-03-11Deprecated transaction.commit/rollback_unless_managed.Aymeric Augustin
Since "unless managed" now means "if database-level autocommit", committing or rolling back doesn't have any effect. Restored transactional integrity in a few places that relied on automatically-started transactions with a transitory API.
2013-03-11Removed superfluous code now that connections use autocommit by default.Aymeric Augustin
2013-03-11Enabled database-level autocommit for all backends.Aymeric Augustin
This is mostly a documentation change. It has the same backwards-incompatibility consequences as those described for PostgreSQL in a previous commit.
2013-03-11Removed _enter/_leave_transaction_management.Aymeric Augustin
The goal is to make all databases share a common, autocommit-based, implementation.
2013-03-11Added BaseDatabaseWrapper.ensure_connection.Aymeric Augustin
This API is useful because autocommit cannot be managed without an open connection.
2013-03-11Expressed the dirty flag handling logic in terms of autocommit.Aymeric Augustin
2013-03-11Stopped flipping the uses_savepoints feature at runtime.Aymeric Augustin
2013-03-11Enabled autocommit for PostgreSQL.Aymeric Augustin
For users who didn't activate autocommit in their database options, this is backwards-incompatible in "non-managed" aka "auto" transaction state. This state now uses database-level autocommit instead of ORM-level autocommit. Also removed the uses_autocommit feature which lost its purpose.
2013-03-11Separated autocommit and isolation level handling for PostgreSQL.Aymeric Augustin
Autocommit cannot be manipulated independently from an open connection. This commit introduces a minor change in behavior: entering transaction management forces opening a databasse connection. This shouldn't be backwards incompatible in any practical use case.
2013-03-11Added an API to control database-level autocommit.Aymeric Augustin
2013-03-11Made transaction.managed a no-op and deprecated it.Aymeric Augustin
enter_transaction_management() was nearly always followed by managed(). In three places it wasn't, but they will all be refactored eventually. The "forced" keyword argument avoids introducing behavior changes until then. This is mostly backwards-compatible, except, of course, for managed itself. There's a minor difference in _enter_transaction_management: the top self.transaction_state now contains the new 'managed' state rather than the previous one. Django doesn't access self.transaction_state in _enter_transaction_management.
2013-03-10Fixed #20019 -- Ensured HttpRequest.resolver_match always exists.Aymeric Augustin
Obviously it isn't set until the URL is resolved.
2013-03-10Made (make|compile)messages check for availability of gettext commands.Ramiro Morales
Refs #19584.
2013-03-09Fixed BinaryField support on Oracle.Florian Apolloner
2013-03-09Fixed #19171 -- Allowed coordinate transforms with custom SRIDsClaude Paroz
Thanks reidpr at lanl.gov for the report.
2013-03-09Fixed #9806 -- Allowed editing GeometryField with OpenLayersWidgetClaude Paroz
Thanks Paul Winkler for the initial patch.
2013-03-09Reformatted slightly openlayers.jsClaude Paroz
2013-03-09Fixed #19923 -- Display tracebacks for non-CommandError exceptionsClaude Paroz
By default, show tracebacks for management command errors when the exception is not a CommandError. Thanks Jacob Radford for the report.
2013-03-09Fixed #16594 -- Added wkt 3D support for GEOS geometriesClaude Paroz
This requires GEOS >= 3.3.0 to function properly. On previous versions, the Z dimension will simply not appear in the wkt. Disabled OpenLayers editing for 3D geometries (unsupported).
2013-03-08Replaced proj4 testing by a regexClaude Paroz
2013-03-08Fixed a regression in forms changed_dataClaude Paroz
Thanks Loic Bistuer for spotting the regression and the initial patch. Refs #16612.
2013-03-08Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer
return a QuerySet.
2013-03-07Merge pull request #850 from bmispelon/ticket-19916Aymeric Augustin
Fix 19916. Smarter tokenizing of contrib.comment's templatetags arguments
2013-03-07Added a ManyToManyField(db_constraint=False) option, this allows not ↵Alex Gaynor
creating constraints on the intermediary models.
2013-03-07Fix 19916. Smarter tokenizing of contrib.comment's templatetags arguments.Baptiste Mispelon
2013-03-07Fixed #19997 -- Added custom EMPTY_VALUES to form fieldsClaude Paroz
Thanks Loic Bistuer for the report and the patch.
2013-03-07Added missing method in the dummy database backend.Aymeric Augustin
2013-03-06Fixed #19951 -- Admin: Invalid model PK values shouldn't cause 500 status.Igor Támara
Avoid ValueError in admin when passing a string as PK for an inherited model with an integer PK field. Thanks ikks for the patch. See also #11191.
2013-03-06PEP8 cleanup of functional.pyPreston Holmes
2013-03-06Fixed #19543 -- implemented SimpleLazyObject.__repr__Preston Holmes
Thanks to Florian Hahn for the patch
2013-03-06One more EMPTY_VALUES replacement following 22be90dd17Claude Paroz
Thanks Loic Bistuer for catching this omission. Refs #19989.
2013-03-06Fixed #19989 -- Suppressed UnicodeWarning during BinaryField validationClaude Paroz
Thanks Aymeric Augustin for the report and Simon Charette for the review.
2013-03-04Fixed #6585 -- Admin relationship widgets: Respect ordering defined by ↵Juan Pedro Fisanotti
target model's ModelAdmin. Thanks Gary Wilson for the report and Juan Pedro Fisanotti, Carlos Matías de la Torre for the fix.
2013-03-04Fixed #19838 -- Admin: Don't leak a 500 HTTP status when trying to delete ↵Javier Mansilla
protected FKs. Thanks rafadev for the report and Javier Mansilla for the fix.
2013-03-04Fixed #19464 -- Eased customization of ClearableFileInput's link markupClaude Paroz
Thanks rubyruy for the report and the patch.
2013-03-03Merge pull request #871 from matiasb/ticket_19945Ramiro Morales
Fixed #19945 -- Fixed default User model Meta inheritance.
2013-03-03Removed mentions of regressiontests.Ramiro Morales
2013-03-03Fixed #19915 - Made blocktrans tag honor TEMPLATE_STRING_IF_INVALID.matiasb
Thanks Natalia Bidart for the report and Matías Bordese for the fix.
2013-03-03Fixed #19942 -- Decoded errors coming from Popen commandsClaude Paroz
Thanks Aymeric Augustin for reporting the issue.
2013-03-02Fixed #19177 -- Better layout for admin login form field labels.Pedro Mourelle
Thanks goes to void for the comprehensive report, to Pedro Mourelle for the fix and to Bryan Veloso, Łukasz Rekucki and Claude Paroz for the review. This fix includes the following changes: * Modified layout to top-aligned labels. * Added 'air' for inputs (the padding was really needed there.). It adjust good to zoom in/out. * Removed float attributes from label and inputs in login form. * Removed useless text-align property.
2013-03-02Fixed getting default encoding in get_system_usernameClaude Paroz
Refs #19933.
2013-03-02Fixed #16888 -- Added microseconds in localized input formatsClaude Paroz
2013-03-02Fixed #19917 -- Added microseconds in default TIME_INPUT_FORMATSClaude Paroz
Thanks minddust for the report.
2013-03-02Fixed #18130 -- Made the isolation level configurable on PostgreSQL.Aymeric Augustin
Thanks limscoder for the report and niwi for the draft patch.
2013-03-02Reordered methods in database wrappers.Aymeric Augustin
* Grouped related methods together -- with banner comments :/ * Described which methods are intended to be implemented in backends. * Added docstrings. * Used the same order in all wrappers.
2013-03-02Add introspection support for BinaryFieldClaude Paroz
2013-03-02Added support for serializing BinaryFieldClaude Paroz
2013-03-02Add a BinaryField model fieldClaude Paroz
Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.
2013-03-02Added a context manager to capture queries while testing.Simon Charette
Also made some import cleanups while I was there. Refs #10399.
2013-03-01Added import forgotten in 2ee21d9.Aymeric Augustin
Thanks ratsonale for spotting this mistake.