summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2014-12-15Fixed #23991 -- Apparently, Oracle doesn't need the decimal field converterShai Berger
Thanks Josh Smeaton for review.
2014-12-13Fixed #23812 -- Changed django.utils.six.moves.xrange imports to rangeMichael Hall
2014-12-12Fixed #23455 -- Accept either bytes or text for related_name, convert to text.Carl Meyer
2014-12-12Revert "Fixed #23455 -- Forced related_name to be a unicode string during ↵Carl Meyer
deconstruction." This reverts commit 45bd7b3bd9008941580c100b9fc7361e3ff3ff0d.
2014-12-12Fixed postgis test database initializationClaude Paroz
Refs #20968. Allow querying template_postgis presence without existing test database. Thanks Tim Graham for the review.
2014-12-12Fixed #23941 -- Removed implicit decimal formatting from expressions.Josh Smeaton
2014-12-11Fixed #23956 -- Fixed migration creation for multiple table inheritanceMarkus Holtermann
2014-12-09Remove text-mangling of default values.Marc Tamlyn
2014-12-08Fixed #20968 -- Checked Spatialite metadata before migrationsClaude Paroz
Thanks Kenial S. Lee for the initial patch and Tim Graham for the review.
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-04Fixed #23954 -- Added special text/varchar PostgreSQL indexes in migrationsClaude Paroz
Thanks adityagupta104 for the report and Tim Graham for the review.
2014-12-04Fixed #23920 -- Fixed MySQL crash when adding blank=True to TextField.Tim Graham
Thanks wkornewald for the report and Markus Holtermann for review.
2014-12-03Fixed #23950 -- Prevented calling deconstruct on classes in MigrationWriter.Gavin Wahl
2014-12-01Fixed #23807 -- Ignored non-digits in psycopg2 versionAndriy Sokolovskiy
2014-12-01Fixed #23909 -- Prevented crash when collecting SQL for RunSQLClaude Paroz
Thanks James Rivett-Carnac for the report and Markus Holtermann for the review.
2014-12-01Fixed #23880 -- Added missing index_together handling for SQLiteMarkus Holtermann
2014-12-01Restored the 'TEST_' prefix in the warning about deprecated test database ↵Shai Berger
settings
2014-11-28Fixed #23853 -- Added Join class to replace JoinInfoAnssi Kääriäinen
Also removed Query.join_map. This structure was used to speed up join reuse calculation. Initial benchmarking shows that this isn't actually needed. If there are use cases where the removal has real-world performance implications, it should be relatively straightforward to reintroduce it as map {alias: [Join-like objects]}.
2014-11-28Fixed #901 -- Added Model.refresh_from_db() methodAnssi Kääriäinen
Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham for reviews.
2014-11-28Fixed #23894 -- Made deconstruct methods favor kwargs over argsMarkus Holtermann
2014-11-28Fixed #16731 -- Made pattern lookups work properly with F() expressionsThomas Chaumeny
2014-11-27Fixed #23338 -- Added warning when unique=True on ForeigKeyDiego Guimarães
Thanks Jonathan Lindén for the initial patch, and Tim Graham and Gabe Jackson for the suggestions.
2014-11-27Fixed #23877 -- aggregation's subquery missed target colAnssi Kääriäinen
Aggregation over subquery produced syntactically incorrect queries in some cases as Django didn't ensure that source expressions of the aggregation were present in the subquery.
2014-11-27Fixed #23875 -- cleaned up query.get_count()Anssi Kääriäinen
2014-11-26Fixed #23801 -- Added warning when max_length is used with IntegerFieldMattBlack85
2014-11-26Fixed #23867 -- removed DateQuerySet hacksAnssi Kääriäinen
The .dates() queries were implemented by using custom Query, QuerySet, and Compiler classes. Instead implement them by using expressions and database converters APIs.
2014-11-26Adjusted a comment to reflect some app refactor changes.Simon Charette
2014-11-25Fixed bug in circular dependency algo for migration dependencies.Luke Plant
Previous algo only worked if the first item was a part of the loop, and you would get an infinite loop otherwise (see test). To fix this, it was much easier to do a pre-pass. A bonus is that you now get an error message that actually helps you debug the dependency problem.
2014-11-22Revert "Fixed #23892 -- Made deconstructible classes forwards compatible"Carl Meyer
This reverts commit f36151ed169813f2873e13ca9de616cfa4095321. Adding kwargs to deconstructed objects does not achieve useful forward-compatibility in general, since additional arguments are silently dropped rather than having their intended effect. In fact, it can make the failure more difficult to diagnose. Thanks Shai Berger for discussion.
2014-11-22Fixed #23892 -- Made deconstructible classes forwards compatibleCarl Meyer
2014-11-21Fixed #23889 -- Added more usage of quote_name_unless_alias() to avoid ↵Collin Anderson
deprecation warnings.
2014-11-21Fixed #23862 -- Made ManyToManyRel.get_related_field() respect to_field.Simon Charette
2014-11-21Fixed #23794 -- Fixed migrations crash when removing a field that's part of ↵Andrzej Pragacz
index/unique_together.
2014-11-20Reduced reduce() usage; refs #23796.Brad Walker
django.core.exceptions.ValidationError.messages() and django.db.backends.schema.BaseDatabaseSchemaEditor._alter_field(): Replaced reduce(operator.add, ...) w/uncoupled, explicit sum()
2014-11-20Fixed #23605 -- Fixed nested subquery regressionAnssi Kääriäinen
Added relabeled_clone() method to sql.Query to fix the problem. It manifested itself in rare cases where at least double nested subquery's filter condition might target non-existing alias. Thanks to Trac alias ris for reporting the problem.
2014-11-20Fixed #23844 -- Used topological sort for migration operation dependency ↵Patryk Zawadzki
resolution. This removes the concept of equality between operations to guarantee compatilibity with Python 3. Python 3 requires equality to result in identical object hashes. It's impossible to implement a unique hash that preserves equality as operations such as field creation depend on being able to accept arbitrary dicts that cannot be hashed reliably. Thanks Klaas van Schelven for the original patch in 13d613f80011852404198dfafd1f09c0c0ea42e6.
2014-11-20Added AutoField introspection for PostgreSQLClaude Paroz
Refs #23748.
2014-11-20Added AutoField introspection for MySQLClaude Paroz
Refs #23748.
2014-11-20Fixed #23876 -- Removed dead code in SQLAggregateCompiler.Carl Meyer
2014-11-19Fixed #23410 -- Avoided unnecessary rollbacks in related apps when migrating ↵Carl Meyer
backwards.
2014-11-19Fixed #21794 -- Removed deprecation warning for abstract models outside an app.Carl Meyer
2014-11-19Fixed #23871 -- Removed promotion of MySQL warnings to errors in DEBUG mode.Tim Graham
2014-11-19Fixed #22248 -- Made RenameModel reversibleStratos Moros
2014-11-18Deprecated calling a SQLCompiler instance.Carl Meyer
2014-11-17Fixed #23859 -- Fixed a migration crash when a field is renamed that is part ↵Markus Holtermann
of an index_together
2014-11-17Avoided unneeded calls to state.render() in migrations.twidi
2014-11-17Reordered condition to avoid calling allow_migrate() if unneeded.twidi
2014-11-17Moved bilateral transform fetching to models.lookupsAnssi Kääriäinen
2014-11-16Fixed #21612 -- Made QuerySet.update() respect to_fieldKaren Tracey
2014-11-16Renamed qn to compilerJosh Smeaton