summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2015-01-27Fixed #24210 -- Cleaned up relational fields __init__().Loic Bistuer
Thanks Collin Anderson and Tim Graham for the reviews.
2015-01-27Fixed #24154 -- Backends can now check support for expressionsJosh Smeaton
2015-01-22Fixed #24104 -- Fixed check to look on field.many_to_many instead of class ↵Andriy Sokolovskiy
instance
2015-01-22Fixed small inconsistency when handling aggregate's default_alias.Loic Bistuer
Refs #14030.
2015-01-20Fixed typos in code comments.Adam Taylor
2015-01-20Fixed a query failure on Python 3.5; refs #23763.Tim Graham
The failure was introduced in Django by c7fd9b242d2d63406f1de6cc3204e35aaa025233 and the change in Python 3.5 is https://hg.python.org/cpython/rev/a3c345ba3563.
2015-01-20Fixed #24183 -- Fixed wrong comparisons in SubstrJosh Smeaton
2015-01-20Fixed #24155 -- Maintained kwargs and import order in migration writerMarkus Holtermann
Thanks Tomas Dobrovolny for the report and Tim Graham for the review.
2015-01-19Advanced deprecation warnings for Django 1.9.Tim Graham
2015-01-19Removed IPAddressField per deprecation timeline; refs #20439.Tim Graham
2015-01-19Removed legacy ORM lookup support per deprecation timeline; refs #16187.Tim Graham
2015-01-19Fixed #24163 -- Removed unique constraint after index on MySQLMarkus Holtermann
Thanks Łukasz Harasimowicz for the report.
2015-01-19Fixed #24174 -- Fixed extra order by descendingJosh Smeaton
2015-01-18Removed obsolete SQL generation methods.Tim Graham
2015-01-18Removed support for syncing apps without migrations per deprecation timeline.Tim Graham
Kept support for creating models without migrations when running tests (especially for Django's test suite).
2015-01-18Removed support for callable QuerySet arguments per deprecation timeline; ↵Tim Graham
refs #11629.
2015-01-17Removed BaseDatabaseValidation.validate_field() per deprecation timeline.Tim Graham
2015-01-17Removed deprecated aliases in django.db.models.Tim Graham
2015-01-17Required sqlparse for SQL splitting per deprecation timeline.Tim Graham
2015-01-17Removed support for custom SQL per deprecation timeline.Tim Graham
2015-01-17Removed support for old-style test database settings per deprecation timeline.Tim Graham
2015-01-17Removed the syncdb command per deprecation timeline.Tim Graham
2015-01-17Removed pre_syncdb and post_syncdb signals per deprecation timeline.Tim Graham
2015-01-17Removed django.db.models.loading per deprecation timeline.Tim Graham
2015-01-17Removed backwards compatibility shims for "util" modules per deprecation ↵Tim Graham
timeline. refs #17627.
2015-01-17Removed fallback suport for allow_syncdb() in database routers per ↵Tim Graham
deprecation timeline.
2015-01-16Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn
Several issues resolved here, following from a report that a base_field of GenericIpAddressField was failing. We were using get_prep_value instead of get_db_prep_value in ArrayField which was bypassing any extra modifications to the value being made in the base field's get_db_prep_value. Changing this broke datetime support, so the postgres backend has gained the relevant operation methods to send dates/times/datetimes directly to the db backend instead of casting them to strings. Similarly, a new database feature has been added allowing the uuid to be passed directly to the backend, as we do with timedeltas. On the other side, psycopg2 expects an Inet() instance for IP address fields, so we add a value_to_db_ipaddress method to wrap the strings on postgres. We also have to manually add a database adapter to psycopg2, as we do not wish to use the built in adapter which would turn everything into Inet() instances. Thanks to smclenithan for the report.
2015-01-16Fixed #24146 -- Fixed a missing fields regression in admin checks.Collin Anderson
This allows using get_field() early in the app loading process. Thanks to PirosB3 and Tim Graham.
2015-01-15Fixed #24135 -- Made RenameModel rename many-to-many tables.Tim Graham
Thanks Simon and Markus for reviews.
2015-01-15Replaced inner functions by class methods.Simon Charette
refs #24031 Thanks to Tim Graham and Michał Modzelewski for the review.
2015-01-14Moved check_aggregate_support to BaseSpatialOperationsClaude Paroz
2015-01-14Fixed incorrect error message in Options.get_fields()Collin Anderson
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2015-01-14Fixed #24075 -- Prevented running post_migrate signals when unapplying ↵Markus Holtermann
initial migrations of contenttypes and auth Thanks Florian Apolloner for the report and Claude Paroz and Tim Graham for the review and help on the patch.
2015-01-14Fixed #24147 -- Prevented managers leaking model during migrationsMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-12Fixed #24031 -- Added CASE expressions to the ORM.Michał Modzelewski
2015-01-13Fixed test failures in Oracle introspectionShai Berger
Refs #17785
2015-01-13Fixed #24060 -- Added OrderBy ExpressionsJosh Smeaton
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2015-01-12Fixed #24129 -- Added indicator that migrations are rendering the initial stateMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-12Fixed #24123 -- Used all available migrations to generate the initial ↵Markus Holtermann
migration state Thanks Collin Anderson for the input when creating the patch and Tim Graham for the review.
2015-01-12Fixed #9893 -- Allowed using a field's max_length in the Storage.Pavel Shpilev
2015-01-11Removed supports_binary_field flag as all backends support themClaude Paroz
It was mainly for MySQL on Python 3, but now the current recommended MySQL driver for Python 3 (mysqlclient) does support binary fields, it is unneeded. Refs #20377.
2015-01-11Refs #24110 -- Added a more descriptive release note and fixed a spelling ↵Markus Holtermann
mistake.
2015-01-10Fixed #24110 -- Rewrote migration unapply to preserve intermediate statesMarkus Holtermann
2015-01-10Move % addition to lookups, refactor postgres lookups.Marc Tamlyn
These refactorings making overriding some text based lookup names on other fields (specifically `contains`) much cleaner. It also removes a bunch of duplication in the contrib.postgres lookups.
2015-01-10Introspected alternate SQLite FK definitionsClaude Paroz
2015-01-10Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.Loic Bistuer
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-09Fixed #24098 -- Added no-op attributes to RunPython and RunSQLMarkus Holtermann
Thanks Loïc Bistuer and Tim Graham for the discussion and review.
2015-01-08Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen
Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument.