summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-13Fixed #29940 -- Recommended using the ORM rather than raw SQL.Katie McLaughlin
2018-11-13Fixed #29641 -- Added support for unique constraints in Meta.constraints.Simon Charette
This constraint is similar to Meta.unique_together but also allows specifying a name. Co-authored-by: Ian Foote <python@ian.feete.org>
2018-11-13Generalized check constraint docs for other constraints.Simon Charette
2018-11-13Moved duplicate author declarations to setUpTestData() in DeleteViewTests.oliver
2018-11-13Refs #29641 -- Refactored database schema constraint creation.Simon Charette
Added a test for constraint names in the database. Updated SQLite introspection to use sqlparse to allow reading the constraint name for table check and unique constraints. Co-authored-by: Ian Foote <python@ian.feete.org>
2018-11-12Fixed #29945 -- Moved contrib.postgres uninstallation logic to the app config.Simon Charette
2018-11-12Doc'd PermissionsMixin's usage of User.is_active and is_superuser.Tobias Bengfort
2018-11-12Corrected docs regarding RegisterLookupMixin subclasses.Sergey Fedoseev
2018-11-10Completed test coverage of contrib.humanize.templatetags.humanize.Hasan Ramezani
2018-11-10Updated some links to https and new locations.Mads Jensen
2018-11-10Removed dead links to botbot.me.Tim Graham
2018-11-10Fixed keep-alive support in manage.py runserver.Florian Apolloner
Ticket #25619 changed the default protocol to HTTP/1.1 but did not properly implement keep-alive. As a "fix" keep-alive was disabled in ticket #28440 to prevent clients from hanging (they expect the server to send more data if the connection is not closed and there is no content length set). The combination of those two fixes resulted in yet another problem: HTTP/1.1 by default allows a client to assume that keep-alive is supported unless the server disables it via 'Connection: close' -- see RFC2616 8.1.2.1 for details on persistent connection negotiation. Now if the client receives a response from Django without 'Connection: close' and immediately sends a new request (on the same tcp connection) before our server closes the tcp connection, it will error out at some point because the connection does get closed a few milli seconds later. This patch fixes the mentioned issues by always sending 'Connection: close' if we cannot determine a content length. The code is inefficient in the sense that it does not allow for persistent connections when chunked responses are used, but that should not really cause any problems (Django does not generate those) and it only affects the development server anyways. Refs #25619, #28440.
2018-11-09Used method chaining in DateTimeShortcuts.js.Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
2018-11-09Fixed #29941 -- Fixed missing variable in docs/ref/contrib/contenttypes.txt.Tim Graham
Regression in b47552b445547e60cc89213f79e02333cb63f270.
2018-11-09Fixed #29934 -- Added sqlparse as a require dependency.Tim Graham
2018-11-09Fixed #29917 -- Stopped collecting ModelAdmin.actions from base ModelAdmins.Matthias Kestenholz
2018-11-09Removed unused variables.Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
2018-11-09Removed unused 'tz' variable in typecast_timestamp().Srinivas Reddy Thatiparthy
2018-11-09Fixed #29920 -- Added a test for smart_urlquote()'s UnicodeError branch.Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
2018-11-09Fixed #29931 -- Removed unused ValueError handling in naturalday template tag.Hasan Ramezani
2018-11-09Moved duplicate author declarations to setUpTestData() in UpdateViewTests.oliver
2018-11-09Fixed signing.dumps() example for Python 3.minusf
2018-11-08Fixed #29908 -- Fixed setting of foreign key after related set access if ↵Simon Charette
ForeignKey uses to_field. Adjusted known related objects handling of target fields which relies on from and to_fields and has the side effect of fixing a bug bug causing N+1 queries when using reverse foreign objects. Thanks Carsten Fuchs for the report.
2018-11-08Fixed #29933 -- Fixed typo in docs/intro/contributing.txt.mentix02
2018-11-06Refs #29926 -- Removed usage of gettext.translation()'s deprecated codeset ↵Tim Graham
parameter. https://bugs.python.org/issue33710
2018-11-06Used QuerySet.bulk_create() in a couple tests.oliver
2018-11-06Fixed #25251 -- Made data migrations available in TransactionTestCase when ↵romgar
using --keepdb. Data loaded in migrations were restored at the beginning of each TransactionTestCase and all the tables are truncated at the end of these test cases. If there was a TransactionTestCase at the end of the test suite, the migrated data weren't restored in the database (especially unexpected when using --keepdb). Now data is restored at the end of each TransactionTestCase.
2018-11-04Improved performance of runtests.py with os.scandir().Tom Forbes
2018-11-04Removed DatabaseOperation.savepoint_create/rollback_sql() on Oracle.Tom Forbes
Obsolete since 918f44e3ae650ff124067425d31c9d3deeba2224.
2018-11-03Refs #29883 -- Removed runtests.py's dependency on selenium.Tim Graham
Regression in d207ac1568bb4dee305f6692ed7ddee8a1ff8b99.
2018-11-03Increased test coverage of django.utils.http.Hasan Ramezani
2018-11-03Fixed inconsistent indentation in docs/ref/contrib/auth.txt.Tobias Bengfort
2018-11-03Fixed #29883 -- Added selenium hub support to runtests.py.Tom Forbes
2018-11-02Fixed typo in docs/internals/contributing/writing-code/coding-style.txt.Mice Pápai
2018-11-01Updated expected date for 2.1.4 release.Carlton Gibson
2018-11-01Fixed #27994 -- Documented ManifestFilesMixin.Theofanis Despoudis
2018-11-01Fixed #29886 -- Fixed unaccent lookup when PostgreSQL's ↵Jayantha Gumballi
standard_conforming_strings option is off. Thanks Tom McClure for the patch.
2018-11-01Added stub release notes for 2.1.4 release.Carlton Gibson
2018-11-01Added release date for 2.1.2 release.Carlton Gibson
2018-10-31Fixed #22390 -- Doc'd possible server restart required in tutorial 6.Tim Graham
2018-10-31Fixed #29890 -- Fixed FileSystemStorage crash if concurrent saves try to ↵Tim Graham
create the same directory. Regression in 632c4ffd9cb1da273303bcd8005fff216506c795.
2018-10-31Fixed #29901 -- Allowed overriding an ↵Javier Matos Odut
autocomplete/raw_id_fields/radio_fields widget with ModelAdmin.get_formset().
2018-10-30Fixed #29783 -- Added app label validation to showmigrations command.Junyoung
2018-10-30Capitalized SecurityMiddleware headers for consistency with other headers.Artur Juraszek
(No behavior change since HTTP headers are case insensitive.)
2018-10-30Increased test coverage of django/views/generic/dates.py.Hasan Ramezani
2018-10-30Fixed #29866 -- Made DiscoverRunner do tests tear down if running checks or ↵Jayden Kneller
tests raises an exception.
2018-10-30Refs #29868 -- Prevented name collisions between test constraints on Oracle.Simon Charette
2018-10-29Fixed #29547 -- Added support for partial indexes.Mads Jensen
Thanks to Ian Foote, Mariusz Felisiak, Simon Charettes, and Markus Holtermann for comments and feedback.
2018-10-29Fixed #29882 -- Added events and stored routines to MySQL's cloned test ↵thomazzo
databases.
2018-10-29Fixed #29903 -- Added error message for invalid WeekArchiveView week_format.Hasan Ramezani