summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-29Fixed code highlighting in docs/ref/contrib/staticfiles.txt.Tim Graham
2018-10-29Fixed #29897 -- Fixed autodetector's swappable MTI dependency resolution.Simon Charette
Thanks Steven Ganz for the detailed report.
2018-10-29Refs #29897 -- Moved autodetector swappable dependency resolution to a method.Simon Charette
2018-10-29Refs #23322 -- Removed unnecessary "and" clause in the autodetector.Simon Charette
If the depedency was swappable then it'll be resolved at this point.
2018-10-29Fixed #29868 -- Retained database constraints on SQLite table rebuilds.Simon Charette
Refs #11964. Thanks Scott Stevens for testing this upcoming feature and the report.
2018-10-28Fixed #29896 -- Fixed incorrect Model.save() cache relation clearing for ↵Tim Graham
foreign keys that use to_field. Regression in ee49306176a2d2f1751cb890bd607d42c7c09196.
2018-10-27Fixed #29763 -- Added support for column renaming on SQLite.Hampus Dunström
2018-10-27Added test coverage for views.generic.dates.MonthMixin.get_month() KeyError ↵Hasan Ramezani
branch.
2018-10-27Fixed #28606 -- Deprecated CachedStaticFilesStorage.Tim Graham
2018-10-25Completed test coverage of views.defaults.bad_request().Hasan Ramezani
2018-10-25Refs #27025 -- Removed obsolete sqlite3 transaction management workaround ↵Tim Graham
for Python 3.6+. Obsolete per https://bugs.python.org/issue10740#msg274816.
2018-10-25Fixed #29534 -- Made dbshell use rlwrap on Oracle if available.Mariusz Felisiak
2018-10-25Fixed #29827 -- Fixed reuse of test databases with --keepdb on MySQL.Sergey Fedoseev
Regression in e1253bc26facfa1d0fca161f43925e99c2591ced.
2018-10-25Fixed #29879 -- Added CSRF_COOKIE_HTTPONLY to CSRF AJAX docs.Mayank Singhal
2018-10-25Removed useless check in sqlite's DatabaseWrapper._savepoint_allowed().Tim Graham
Obsolete since 27193aea0088b238e3ee0f0f235364a34a09265c.
2018-10-25Made DatabaseFeatures.uses_savepoints default to True.Tim Graham
2018-10-24Fixed #29869 -- Made UUIDField.to_python() convert integers.Sanyam Khurana
2018-10-24Removed a useless sentence in docs/ref/unicode.txt.Hemanth V. Alluri
2018-10-24Fixed #29721 -- Ensured migrations are applied and recorded atomically.Sanyam Khurana
2018-10-24Refs #11964 -- Removed raw SQL from and cleaned up constraint operation tests.Simon Charette
2018-10-24Ignored flake8 W504 warnings.Mariusz Felisiak
W504 is mutually exclusive with W503 that we follow.
2018-10-24Fixed F841 flake8 warning.Mariusz Felisiak
2018-10-23Removed obsolete and flaky GeoIP tests.Tom Forbes
2018-10-23Completed test coverage of views.static.directory_name().Hasan Ramezani
2018-10-23Fixed #29831 -- Added validation for makemigrations --name.Prabakaran Kumaresshan
2018-10-23Refs #29877 -- Made diveinto.org URLs HTTPS.Jon Dufresne
2018-10-23Fixed #29877 -- Replaced diveintopython3.net with diveinto.org/python3/.za
2018-10-22Fixed #29830 -- Fixed loss of custom utf-8 body encoding in mails.jannschu
2018-10-22Fixed #29880 -- Fixed typo in docs/topics/auth/default.txt.Tim Graham
2018-10-22Fixed #29860 -- Allowed BaseValidator to accept a callable limit_value.buzzi
2018-10-22Fixed #27595 -- Made ForeignKey.get_col() follow target chains.Simon Charette
Previously, foreign relationships were followed only one level deep which prevents foreign keys to foreign keys from being resolved appropriately. This was causing issues such as improper database value conversion for UUIDField on SQLite because the resolved expression's output field's internal type wasn't correct. Added tests to make sure unlikely foreign reference cycles don't cause recursion errors. Refs #24343. Thanks oyooyo for the report and Wayne Merry for the investigation.
2018-10-22Fixed #29876 -- MySQL does not support SPATIAL fields in unique indices.Florian Apolloner
2018-10-21Fixed #29847 -- Ensured proper ordering in queries.Florian Apolloner
Even though good databases tend to keep the result sorted by the/one window expression and the planners are smart enough to not resort if not required, it is not valid to rely on this. MariaDB specifically did return whatever order it wanted, which is completely okay. Now we sort towards the expected data for all databases.
2018-10-21Fixed a failing test when the source directory is on a readonly fs.Florian Apolloner
2018-10-21Removed "encoding" description in GIS tutorial.Atul Varma
An omission in 388165ade4219aeefac1e231c1d44c51a7b62829.
2018-10-21Fixed #29870 -- Added DurationField introspection for Oracle and PostgreSQL.Mariusz Felisiak
Thanks Tim Graham for the review.
2018-10-20Fixed Italian's MONTH_DAY_FORMAT.deby
The `/` is inconsistent with the other languages.
2018-10-19Fixed #29774 -- Fixed django-admin shell hang on startup.Adam Allred
sys.stdin.read() blocks waiting for EOF in shell.py which will likely never come if the user provides input on stdin via the keyboard before the shell starts. Added check for a tty to skip reading stdin if it's not present. This still allows piping of code into the shell (which should have no TTY and should have an EOF) but also doesn't cause it to hang if multi-line input is provided.
2018-10-18Fixed #29858 -- Clarified docs regarding CSRF token header name.Tim Graham
2018-10-18Updated Jinja2 static tag example to use django.templatetags.Andy Chosak
As of cf546e11ac76c8dec527e39ff8ce8249a195ab42, this is the canonical way to invoke the static tag.
2018-10-17Fixed #29838 -- Fixed crash when combining Q objects with __in lookups and ↵aspalding
lists. Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c.
2018-10-17Refs #29838 -- Fixed make_hashable() for values that have lists or dicts ↵aspalding
nested in tuples. And for non-hashable values that are iterable, e.g. sets.
2018-10-17Moved make_hashable() to django.utils and added tests.aspalding
2018-10-17Removed obsolete "ugly URL" reference.Tom Dyson
2018-10-17Fixed #29857 -- Added get_storage_class to django.core.files.storage.__all__.Tim Graham
2018-10-17Fixed #21171 -- Avoided starting a transaction when a single (or atomic ↵Florian Apolloner
queries) are executed. Checked the following locations: * Model.save(): If there are parents involved, take the safe way and use transactions since this should be an all or nothing operation. If the model has no parents: * Signals are executed before and after the previous existing transaction -- they were never been part of the transaction. * if `force_insert` is set then only one query is executed -> atomic by definition and no transaction needed. * same applies to `force_update`. * If a primary key is set and no `force_*` is set Django will try an UPDATE and if that returns zero rows it tries an INSERT. The first case is completly save (single query). In the second case a transaction should not produce different results since the update query is basically a no-op then (might miss something though). * QuerySet.update(): no signals issued, single query -> no transaction needed. * Model/Collector.delete(): This one is fun due to the fact that is does many things at once. Most importantly though: It does send signals as part of the transaction, so for maximum backwards compatibility we need to be conservative. To ensure maximum compatibility the transaction here is removed only if the following holds true: * A single instance is being deleted. * There are no signal handlers attached to that instance. * There are no deletions/updates to cascade. * There are no parents which also need deletion.
2018-10-16Added a paragraph in docs/intro/contributing.txt.Çağıl
2018-10-16Refs #23919 -- Removed a stray object-inheritance.Mads Jensen
Follow up to 081e78716085ff4af08604af5d084c8fd27c0730.
2018-10-15Fixed #29817 -- Deprecated settings.FILE_CHARSET.Jon Dufresne
2018-10-15Refs #27829 -- Added warning for settings.DEFAULT_CONTENT_TYPE usage outside ↵Jon Dufresne
of Django.