Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #20337 -- Clarified error message when database ↵Dan Loewenherz2013-06-011-4/+2
| | | | relation is not allowed.
* Fixed #16856 - Added a way to clear select_related.Tim Graham2013-05-301-1/+5
| | | | Thanks Carl for the suggestion and David Cramer for the patch.
* Fixed #20272 - Moved update_fields existence check into ↵Tim Graham2013-05-301-11/+11
| | | | | | Model._do_update. Thanks Gavin Wahl.
* Fixed #16436 -- defer + annotate + select_related crashTai Lee2013-05-301-1/+2
| | | | | | | | Correctly calculate the ``aggregate_start`` offset from loaded fields, if any are deferred, instead of ``self.query.select`` which includes all fields on the model. Also made some PEP 8 fixes.
* Fixed #20014 -- implemented get_key_columns() for OracleShai Berger2013-05-271-0/+12
| | | | Thanks Aymeric Augustin for reporting
* Fixed #20501 -- failure of datetime queries with ↵Shai Berger2013-05-271-3/+4
| | | | timezones under Oracle
* Fixed #16137 - Removed kwargs requirement for ↵Tim Graham2013-05-271-2/+0
| | | | | | | QuerySet.get_or_create Thanks wilfred@, poirier, and charettes for work on the patch.
* Fixed #17582 - Added message to DoesNotExist exceptions.Tim Graham2013-05-271-2/+5
| | | | | Thanks simon@ for the suggestion and JordanPowell for the initial patch.
* Fixed #20507 -- SubqueryConstraint alias handlingAnssi Kääriäinen2013-05-271-2/+1
| | | | MySQL should work now, too.
* Fixed #20507 -- SubqueryConstraint alias relabelingAnssi Kääriäinen2013-05-272-6/+8
| | | | | | | | | | The SubqueryConstraint defined relabeled_clone(), but that was never called. Instead there is now clone() and relabel_aliases() methods for SubqueryConstraint. A related problem was that SubqueryConstraint didn't correctly use quote_name_unless_alias() of the outer query. This resulted in failures when running under PostgreSQL.
* Replaced `and...or...` constructs with PEP 308 ↵Ramiro Morales2013-05-274-4/+4
| | | | conditional expressions.
* Fixed a regression in router initializationClaude Paroz2013-05-241-2/+3
| | | | | Regression was introduced in 6a6bb168b. Thanks Bas Peschier for the report.
* Optimisation in prefetch_related_objectsLuke Plant2013-05-241-25/+22
|
* Fixed #19607 - prefetch_related crashLuke Plant2013-05-241-2/+7
| | | | Thanks to av@rdf.ru and flarno11@yahoo.de for the report.
* Delayed settings.DATABASE_ROUTERS usage by ConnectionRouterClaude Paroz2013-05-232-6/+14
| | | | Refs #20474.
* Delayed settings.DATABASES usage by ConnectionHandlerClaude Paroz2013-05-232-12/+19
| | | | Refs #20474.
* Fixed #20474 -- Proxied and deprecated django.db.backendClaude Paroz2013-05-231-1/+23
|
* Fixed #11398 - Added a pre_syncdb signalDonald Stufft2013-05-231-0/+1
|
* Fixed #20463 -- Made get_or_create more robust.Aymeric Augustin2013-05-221-3/+3
| | | | | | | When an exception other than IntegrityError was raised, get_or_create could fail and leave the database connection in an unusable state. Thanks UloPe for the report.
* Fixed #20012 -- test_year_lookup_edge_case fails under ↵Shai Berger2013-05-221-0/+10
| | | | | | | | Oracle Used formatted date instead of datetime object for the end of the year range, as the datetime object loses fractions-of-seconds when inserted into the db.
* Fixed #20015 -- date__startswith('2008') fails under OracleShai Berger2013-05-221-3/+0
| | | | Removed the explicit casting of strings to dates
* Fixed #20453 -- inspectdb test failure on OracleShai Berger2013-05-221-0/+1
|
* Fixed #18702 -- Removed chunked reads from QuerySet ↵Anssi Kääriäinen2013-05-211-120/+29
| | | | iteration
* Fixed #19326 -- Added first() and last() methods to QuerySetSelwin Ong2013-05-212-0/+26
|
* (Re-)moved some importsClaude Paroz2013-05-211-1/+2
|
* Fixed #9321 -- Deprecated hard-coding of help text in ↵Ramiro Morales2013-05-201-4/+1
| | | | | | | | | | | | | | | model ManyToManyField fields. This is backward incompatible for custom form field/widgets that rely on the hard-coded 'Hold down "Control", or "Command" on a Mac, to select more than one.' sentence. Application that use standard model form fields and widgets aren't affected but need to start handling these help texts by themselves before Django 1.8. For more details, see the related release notes and deprecation timeline sections added with this commit.
* Fixed #20278 -- ensured .get() exceptions do not recurse ↵Anssi Kääriäinen2013-05-201-6/+4
| | | | | | | | infinitely A regression caused by d5b93d3281fe93cbef5de84a52 made .get() error reporting recurse infinitely on certain rare conditions. Fixed this by not trying to print the given lookup kwargs.
* Fixed #20378 -- regression in GenericRelation on ↵Anssi Kääriäinen2013-05-201-0/+2
| | | | | | | | | | | abstract model When a GenericRelation was defined on abstract model, queries on childs of the abstract model didn't work. The problem was in the way fields and in particular field.rel was copied from models to their children. The regression was likely caused by #19385. Thanks to Gavin Wahl for spotting the regression.
* Fixed qs.values() regression when used in subqueryAnssi Kääriäinen2013-05-201-1/+6
|
* Changed API to disable ATOMIC_REQUESTS per view.Aymeric Augustin2013-05-191-0/+17
| | | | | | | A decorator is easier to apply to CBVs. Backwards compatibility isn't an issue here, except for people running on a recent clone of master. Fixed a few minor problems in the transactions docs while I was there.
* Fixed test failures with Oracle when pytz isn't installed.Aymeric Augustin2013-05-191-0/+6
| | | | Thanks Shai Berger for the report.
* Merge pull request #1160 from erikr/host-inet-postgres2Aymeric Augustin2013-05-194-11/+13
|\ | | | | Fixed #11442 -- Postgresql backend casts all inet types to text
| * Fixed #11442 -- Postgresql backend casts all inet types ↵Erik Romijn2013-05-194-11/+13
| | | | | | | | to text
* | Merge pull request #1028 from manfre/patch-2Aymeric Augustin2013-05-191-2/+3
|\ \ | |/ |/| Fixed #20340 - document required return value for disable_constraint_checking
| * Fixed documentation of disable_constraint_checkingMichael Manfre2013-04-241-2/+3
| | | | | | The docstring and base implementation of disable_constraint_checking do not indicate that a return value is expected for proper behavior.
* | Fixed #20386 - Introspection problem on OracleShai Berger2013-05-181-1/+3
| | | | | | | | | | Made introspection always return a unicode as column name on Oracle. Thanks aaugustin for review and suggestion to use force_text().
* | Replaced an antiquated pattern.Aymeric Augustin2013-05-178-17/+17
| | | | | | | | Thanks Lennart Regebro for pointing it out.
* | Fixed #20413 - Respect Query.get_meta()Mike Fogel2013-05-154-23/+23
| |
* | Fixed #20215 -- Disabled persistent connections by default.Aymeric Augustin2013-05-091-1/+1
| |
* | Merge pull request #1049 from ↵Alex Gaynor2013-05-091-15/+0
|\ \ | | | | | | | | | | | | mfogel/remove-unescessary-parameter-checks Remove unnecessary check on __set__ parameters.
| * | Remove unnecessary check on __set__ parameters.Mike Fogel2013-05-081-15/+0
| | |
* | | [py3] Stopped iterating on exceptions. Refs #20025.Aymeric Augustin2013-05-081-2/+2
| | |
* | | Fixed #20025 -- Pointed to a MySQLdb fork for Python 3.Aymeric Augustin2013-05-082-2/+4
| | | | | | | | | | | | Made a few minor compatibility adjustments.
* | | Fixed test failures on MySQL.Aymeric Augustin2013-05-082-1/+15
|/ / | | | | | | | | Some tests failed when the time zone definitions were loaded in MySQL and pytz wasn't installed. This setup isn't supported.
* | Systematically imported wraps from functoolsClaude Paroz2013-05-041-1/+2
| |
* | Converted a list comprehension into a generator ↵Adrian Holovaty2013-04-251-1/+1
| | | | | | | | expression in query_utils.py
* | Negligible formatting fixes in query_utils.pyAdrian Holovaty2013-04-251-3/+2
| |
* | Removed an errant ipdb import from commit 9777442Adrian Holovaty2013-04-251-5/+1
|/
* Use `LOOKUP_SEP` in `get_or_create`.Simon Charette2013-04-181-2/+2
|
* Fixed #14019 -- Initialize `SQLInsertCompiler.return_id` ↵Tobias McNulty2013-04-081-0/+5
| | | | attribute.