From f3bdfd2065373272ebb637785cea2313582a8b8c Mon Sep 17 00:00:00 2001 From: Vinay Datta Date: Tue, 24 Mar 2026 18:24:28 +0530 Subject: [PATCH 1/2] Fixed #36999 -- Removed mention of Ruby on Rails from tutorial part 2. This comparison wasn't fleshed out, so it was distracting. --- docs/intro/tutorial02.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index a62d59e4ac42..b93f5d8a38bf 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -95,10 +95,9 @@ additional metadata. Django follows the :ref:`DRY Principle `. The goal is to define your data model in one place and automatically derive things from it. - This includes the migrations - unlike in Ruby On Rails, for example, - migrations are entirely derived from your models file, and are essentially a - history that Django can roll through to update your database schema to - match your current models. + This includes the migrations, which are derived from your models file. + They form a history that Django uses to update your database schema + to match your current models. In our poll app, we'll create two models: ``Question`` and ``Choice``. A ``Question`` has a question and a publication date. A ``Choice`` has two From b38cddf8f9d9dfe7a80e8d05c2295c69bdee68f0 Mon Sep 17 00:00:00 2001 From: varunkasyap Date: Sun, 22 Mar 2026 21:20:18 +0530 Subject: [PATCH 2/2] Fixed #36985 -- Skipped CreateExtension backwards operation on non-PostgreSQL databases. --- django/contrib/postgres/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py index c09d7874c193..b760b32a230e 100644 --- a/django/contrib/postgres/operations.py +++ b/django/contrib/postgres/operations.py @@ -43,7 +43,7 @@ def database_forwards(self, app_label, schema_editor, from_state, to_state): ) def database_backwards(self, app_label, schema_editor, from_state, to_state): - if not router.allow_migrate( + if schema_editor.connection.vendor != "postgresql" or not router.allow_migrate( schema_editor.connection.alias, app_label, **self.hints ): return