diff --git a/common b/common index d1b69f7d77e..9e66588307b 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit d1b69f7d77ea119d07705ece8570e9f7e91b9cdf +Subproject commit 9e66588307b6487f028cc9c5682eacd841ec4de9 diff --git a/docs/dev/migrations.rst b/docs/dev/migrations.rst index 7095cac978e..de876fc2e76 100644 --- a/docs/dev/migrations.rst +++ b/docs/dev/migrations.rst @@ -41,7 +41,7 @@ You can achieve this by following these steps: self.fields["new_field"].empty_value = False #. Create the migration file (let's call this migration ``app 0001``), - and mark it as ``Safe.before_deploy``. + and mark it as ``Safe.before_deploy()``. .. code-block:: python @@ -50,10 +50,10 @@ You can achieve this by following these steps: class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() #. Create a data migration to populate all null values of the new field with a proper value (let's call this migration ``app 0002``), - and mark it as ``Safe.after_deploy``. + and mark it as ``Safe.after_deploy()``. .. code-block:: python @@ -66,14 +66,14 @@ You can achieve this by following these steps: class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() operations = [ migrations.RunPython(migrate), ] #. After the deploy has been completed, create a new migration to set the field as non-nullable (let's call this migration ``app 0003``). - Run this migration on a new deploy, you can mark it as ``Safe.before_deploy`` or ``Safe.always``. + Run this migration on a new deploy, you can mark it as ``Safe.before_deploy()`` or ``Safe.always()``. #. Remove any handling of the null case from the code. At the end, the deploy should look like this: @@ -102,7 +102,7 @@ You can achieve this by following these steps: field_to_delete = models.CharField(max_length=100, null=True, blank=True) #. Create the migration file (let's call this migration ``app 0001``), - and mark it as ``Safe.before_deploy``. + and mark it as ``Safe.before_deploy()``. .. code-block:: python @@ -111,10 +111,10 @@ You can achieve this by following these steps: class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() #. Create a migration to remove the field from the database (let's call this migration ``app 0002``), - and mark it as ``Safe.after_deploy``. + and mark it as ``Safe.after_deploy()``. .. code-block:: python @@ -123,7 +123,7 @@ You can achieve this by following these steps: class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() At the end, the deploy should look like this: diff --git a/pytest.ini b/pytest.ini index db68d1f51f4..4e4608cd10d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -22,6 +22,6 @@ filterwarnings = ignore:DateTimeField .* received a naive datetime .* while time zone support is active:RuntimeWarning ignore:.*:DeprecationWarning - ignore:.*:django.utils.deprecation.RemovedInDjango50Warning + ignore:.*:django.utils.deprecation.RemovedInDjango60Warning ignore:.*:elasticsearch.exceptions.ElasticsearchWarning ignore:.*:PendingDeprecationWarning diff --git a/readthedocs/analytics/migrations/0001_initial.py b/readthedocs/analytics/migrations/0001_initial.py index 756b710be12..f645e344ffe 100644 --- a/readthedocs/analytics/migrations/0001_initial.py +++ b/readthedocs/analytics/migrations/0001_initial.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/analytics/migrations/0002_track_status_code.py b/readthedocs/analytics/migrations/0002_track_status_code.py index 423bbf49b89..1a1b7bd278c 100644 --- a/readthedocs/analytics/migrations/0002_track_status_code.py +++ b/readthedocs/analytics/migrations/0002_track_status_code.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0041_track_task_id"), ("projects", "0087_use_booleanfield_null"), diff --git a/readthedocs/analytics/migrations/0003_remove_index.py b/readthedocs/analytics/migrations/0003_remove_index.py index 1be9debbcf3..7790cd6c4f6 100644 --- a/readthedocs/analytics/migrations/0003_remove_index.py +++ b/readthedocs/analytics/migrations/0003_remove_index.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("analytics", "0002_track_status_code"), ] diff --git a/readthedocs/analytics/migrations/0004_merge_duplicate_records.py b/readthedocs/analytics/migrations/0004_merge_duplicate_records.py index f0130ac1b46..05d5760ca33 100644 --- a/readthedocs/analytics/migrations/0004_merge_duplicate_records.py +++ b/readthedocs/analytics/migrations/0004_merge_duplicate_records.py @@ -29,7 +29,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("analytics", "0003_remove_index"), ] diff --git a/readthedocs/analytics/migrations/0005_add_unique_constraint.py b/readthedocs/analytics/migrations/0005_add_unique_constraint.py index 749db323687..fd355d7539c 100644 --- a/readthedocs/analytics/migrations/0005_add_unique_constraint.py +++ b/readthedocs/analytics/migrations/0005_add_unique_constraint.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("analytics", "0004_merge_duplicate_records"), ] diff --git a/readthedocs/analytics/migrations/0006_alter_pageview_id.py b/readthedocs/analytics/migrations/0006_alter_pageview_id.py index c646ce95127..bcd76eb9b58 100644 --- a/readthedocs/analytics/migrations/0006_alter_pageview_id.py +++ b/readthedocs/analytics/migrations/0006_alter_pageview_id.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("analytics", "0005_add_unique_constraint"), ] diff --git a/readthedocs/analytics/migrations/0007_index_on_pageview_date.py b/readthedocs/analytics/migrations/0007_index_on_pageview_date.py index f96d705ac67..5c01504f9cc 100644 --- a/readthedocs/analytics/migrations/0007_index_on_pageview_date.py +++ b/readthedocs/analytics/migrations/0007_index_on_pageview_date.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("analytics", "0006_alter_pageview_id"), ] diff --git a/readthedocs/api/v2/migrations/0001_initial.py b/readthedocs/api/v2/migrations/0001_initial.py index da4601a47d8..0b26b0bdf8b 100644 --- a/readthedocs/api/v2/migrations/0001_initial.py +++ b/readthedocs/api/v2/migrations/0001_initial.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/audit/migrations/0001_initial.py b/readthedocs/audit/migrations/0001_initial.py index c48ebe8f9e4..48881a62aca 100644 --- a/readthedocs/audit/migrations/0001_initial.py +++ b/readthedocs/audit/migrations/0001_initial.py @@ -9,7 +9,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/audit/migrations/0002_add_organization.py b/readthedocs/audit/migrations/0002_add_organization.py index 2948cd5fca9..056ba561cbd 100644 --- a/readthedocs/audit/migrations/0002_add_organization.py +++ b/readthedocs/audit/migrations/0002_add_organization.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0006_add_assets_cleaned"), ("audit", "0001_initial"), diff --git a/readthedocs/audit/migrations/0003_update_ordering.py b/readthedocs/audit/migrations/0003_update_ordering.py index 571c5cabda9..8f9442924b4 100644 --- a/readthedocs/audit/migrations/0003_update_ordering.py +++ b/readthedocs/audit/migrations/0003_update_ordering.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("audit", "0002_add_organization"), ] diff --git a/readthedocs/audit/migrations/0004_change_ip_field_type.py b/readthedocs/audit/migrations/0004_change_ip_field_type.py index 5c0acb3e64f..c271b7bc576 100644 --- a/readthedocs/audit/migrations/0004_change_ip_field_type.py +++ b/readthedocs/audit/migrations/0004_change_ip_field_type.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("audit", "0003_update_ordering"), ] diff --git a/readthedocs/audit/migrations/0005_migrate_ip_field_values.py b/readthedocs/audit/migrations/0005_migrate_ip_field_values.py index 39f9e619212..03b1c2e28d7 100644 --- a/readthedocs/audit/migrations/0005_migrate_ip_field_values.py +++ b/readthedocs/audit/migrations/0005_migrate_ip_field_values.py @@ -20,7 +20,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("audit", "0004_change_ip_field_type"), ] diff --git a/readthedocs/audit/migrations/0006_add_download_action.py b/readthedocs/audit/migrations/0006_add_download_action.py index d7b178d5c3d..35456295d2c 100644 --- a/readthedocs/audit/migrations/0006_add_download_action.py +++ b/readthedocs/audit/migrations/0006_add_download_action.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("audit", "0005_migrate_ip_field_values"), ] diff --git a/readthedocs/audit/migrations/0007_auditlog_data.py b/readthedocs/audit/migrations/0007_auditlog_data.py index 7668e43944a..f54c3c768bf 100644 --- a/readthedocs/audit/migrations/0007_auditlog_data.py +++ b/readthedocs/audit/migrations/0007_auditlog_data.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("audit", "0006_add_download_action"), ] diff --git a/readthedocs/audit/migrations/0008_alter_auditlog_action.py b/readthedocs/audit/migrations/0008_alter_auditlog_action.py index f4c5a99ad54..e417420d4a2 100644 --- a/readthedocs/audit/migrations/0008_alter_auditlog_action.py +++ b/readthedocs/audit/migrations/0008_alter_auditlog_action.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("audit", "0007_auditlog_data"), ] diff --git a/readthedocs/builds/migrations/0001_initial.py b/readthedocs/builds/migrations/0001_initial.py index a57c7abd3f4..871ba70fbba 100644 --- a/readthedocs/builds/migrations/0001_initial.py +++ b/readthedocs/builds/migrations/0001_initial.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("projects", "0001_initial"), ("taggit", "0001_initial"), @@ -247,8 +247,4 @@ class Migration(migrations.Migration): name="version", unique_together={("project", "slug")}, ), - migrations.AlterIndexTogether( - name="build", - index_together={("version", "state", "type")}, - ), ] diff --git a/readthedocs/builds/migrations/0002_build_command_initial.py b/readthedocs/builds/migrations/0002_build_command_initial.py index 8bf71d4d5d4..565fe348bbb 100644 --- a/readthedocs/builds/migrations/0002_build_command_initial.py +++ b/readthedocs/builds/migrations/0002_build_command_initial.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0001_initial"), ] diff --git a/readthedocs/builds/migrations/0003_add-cold-storage.py b/readthedocs/builds/migrations/0003_add-cold-storage.py index 5a6f4c3ef4f..a41f8d13d14 100644 --- a/readthedocs/builds/migrations/0003_add-cold-storage.py +++ b/readthedocs/builds/migrations/0003_add-cold-storage.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0002_build_command_initial"), ] diff --git a/readthedocs/builds/migrations/0004_add-apiversion-proxy-model.py b/readthedocs/builds/migrations/0004_add-apiversion-proxy-model.py index f049e0b09e1..8c10d51f9fb 100644 --- a/readthedocs/builds/migrations/0004_add-apiversion-proxy-model.py +++ b/readthedocs/builds/migrations/0004_add-apiversion-proxy-model.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0003_add-cold-storage"), ] diff --git a/readthedocs/builds/migrations/0005_remove-version-alias.py b/readthedocs/builds/migrations/0005_remove-version-alias.py index d40d255f2b3..f62e15d145a 100644 --- a/readthedocs/builds/migrations/0005_remove-version-alias.py +++ b/readthedocs/builds/migrations/0005_remove-version-alias.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("builds", "0004_add-apiversion-proxy-model"), ] diff --git a/readthedocs/builds/migrations/0006_add_config_field.py b/readthedocs/builds/migrations/0006_add_config_field.py index 432c0efead3..03ded2fb097 100644 --- a/readthedocs/builds/migrations/0006_add_config_field.py +++ b/readthedocs/builds/migrations/0006_add_config_field.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0005_remove-version-alias"), ] diff --git a/readthedocs/builds/migrations/0007_add-automation-rules.py b/readthedocs/builds/migrations/0007_add-automation-rules.py index d9044005271..cf011e47880 100644 --- a/readthedocs/builds/migrations/0007_add-automation-rules.py +++ b/readthedocs/builds/migrations/0007_add-automation-rules.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0042_increase_env_variable_value_max_length"), ("contenttypes", "0002_remove_content_type_name"), diff --git a/readthedocs/builds/migrations/0008_remove-version-tags.py b/readthedocs/builds/migrations/0008_remove-version-tags.py index 5a8a92a8421..fe3ae8917c3 100644 --- a/readthedocs/builds/migrations/0008_remove-version-tags.py +++ b/readthedocs/builds/migrations/0008_remove-version-tags.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0007_add-automation-rules"), ] diff --git a/readthedocs/builds/migrations/0009_added_external_version_type.py b/readthedocs/builds/migrations/0009_added_external_version_type.py index b2c4ce675ec..693f9ae9cf3 100644 --- a/readthedocs/builds/migrations/0009_added_external_version_type.py +++ b/readthedocs/builds/migrations/0009_added_external_version_type.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0008_remove-version-tags"), ] diff --git a/readthedocs/builds/migrations/0010_add-description-field-to-automation-rule.py b/readthedocs/builds/migrations/0010_add-description-field-to-automation-rule.py index eecdc2bc54a..21dbcbedd5c 100644 --- a/readthedocs/builds/migrations/0010_add-description-field-to-automation-rule.py +++ b/readthedocs/builds/migrations/0010_add-description-field-to-automation-rule.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0009_added_external_version_type"), ] diff --git a/readthedocs/builds/migrations/0011_version-media-availability.py b/readthedocs/builds/migrations/0011_version-media-availability.py index 75deb3cafa6..6b20211245c 100644 --- a/readthedocs/builds/migrations/0011_version-media-availability.py +++ b/readthedocs/builds/migrations/0011_version-media-availability.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0010_add-description-field-to-automation-rule"), ] diff --git a/readthedocs/builds/migrations/0012_add-predefined-match-arg-field.py b/readthedocs/builds/migrations/0012_add-predefined-match-arg-field.py index b97908b83f5..9816eace084 100644 --- a/readthedocs/builds/migrations/0012_add-predefined-match-arg-field.py +++ b/readthedocs/builds/migrations/0012_add-predefined-match-arg-field.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0011_version-media-availability"), ] diff --git a/readthedocs/builds/migrations/0013_version_documentation_type.py b/readthedocs/builds/migrations/0013_version_documentation_type.py index 215d7cfb0b9..50384f32655 100644 --- a/readthedocs/builds/migrations/0013_version_documentation_type.py +++ b/readthedocs/builds/migrations/0013_version_documentation_type.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0012_add-predefined-match-arg-field"), ] diff --git a/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py b/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py index 797a1945f97..e08796d7614 100644 --- a/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py +++ b/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py @@ -18,7 +18,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0013_version_documentation_type"), ] diff --git a/readthedocs/builds/migrations/0015_uploading_build_state.py b/readthedocs/builds/migrations/0015_uploading_build_state.py index d861c3be0ee..556f2f0ce0a 100644 --- a/readthedocs/builds/migrations/0015_uploading_build_state.py +++ b/readthedocs/builds/migrations/0015_uploading_build_state.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0014_migrate-doctype-from-project-to-version"), ] diff --git a/readthedocs/builds/migrations/0016_add_mkdocs_html_doctype.py b/readthedocs/builds/migrations/0016_add_mkdocs_html_doctype.py index 66206e6a4d7..8a23938a6ca 100644 --- a/readthedocs/builds/migrations/0016_add_mkdocs_html_doctype.py +++ b/readthedocs/builds/migrations/0016_add_mkdocs_html_doctype.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0015_uploading_build_state"), ] diff --git a/readthedocs/builds/migrations/0017_builds_deterministic_order_index.py b/readthedocs/builds/migrations/0017_builds_deterministic_order_index.py index e8420016087..62e13fe3cc9 100644 --- a/readthedocs/builds/migrations/0017_builds_deterministic_order_index.py +++ b/readthedocs/builds/migrations/0017_builds_deterministic_order_index.py @@ -1,17 +1,20 @@ # Generated by Django 2.2.12 on 2020-04-17 23:18 from django.db import migrations +from django.db import models from django_safemigrate import Safe class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0016_add_mkdocs_html_doctype"), ] operations = [ - migrations.AlterIndexTogether( - name="build", - index_together={("date", "id"), ("version", "state", "type")}, + migrations.AddIndex( + model_name="build", + index=models.Index( + fields=["version", "state", "type"], name="builds_buil_version_dd29f9_idx" + ), ), ] diff --git a/readthedocs/builds/migrations/0018_add_hidden_field_to_version.py b/readthedocs/builds/migrations/0018_add_hidden_field_to_version.py index 3f62cf84928..c98f59b9861 100644 --- a/readthedocs/builds/migrations/0018_add_hidden_field_to_version.py +++ b/readthedocs/builds/migrations/0018_add_hidden_field_to_version.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0017_builds_deterministic_order_index"), ] diff --git a/readthedocs/builds/migrations/0019_migrate_protected_versions_to_hidden.py b/readthedocs/builds/migrations/0019_migrate_protected_versions_to_hidden.py index dd1e9a6f45a..c3352a6b8d6 100644 --- a/readthedocs/builds/migrations/0019_migrate_protected_versions_to_hidden.py +++ b/readthedocs/builds/migrations/0019_migrate_protected_versions_to_hidden.py @@ -10,7 +10,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0018_add_hidden_field_to_version"), ] diff --git a/readthedocs/builds/migrations/0020_migrate_null_hidden_field.py b/readthedocs/builds/migrations/0020_migrate_null_hidden_field.py index cec3d786a74..0f4eb5a8e61 100644 --- a/readthedocs/builds/migrations/0020_migrate_null_hidden_field.py +++ b/readthedocs/builds/migrations/0020_migrate_null_hidden_field.py @@ -10,7 +10,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0019_migrate_protected_versions_to_hidden"), ] diff --git a/readthedocs/builds/migrations/0021_make_hidden_field_not_null.py b/readthedocs/builds/migrations/0021_make_hidden_field_not_null.py index 5f9a50fab4d..98b0480eefc 100644 --- a/readthedocs/builds/migrations/0021_make_hidden_field_not_null.py +++ b/readthedocs/builds/migrations/0021_make_hidden_field_not_null.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0020_migrate_null_hidden_field"), ] diff --git a/readthedocs/builds/migrations/0022_migrate_protected_versions.py b/readthedocs/builds/migrations/0022_migrate_protected_versions.py index 1bc6bc65eba..c091defde75 100644 --- a/readthedocs/builds/migrations/0022_migrate_protected_versions.py +++ b/readthedocs/builds/migrations/0022_migrate_protected_versions.py @@ -20,7 +20,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0021_make_hidden_field_not_null"), ] diff --git a/readthedocs/builds/migrations/0023_add_status_code.py b/readthedocs/builds/migrations/0023_add_status_code.py index 5bd14038ced..bf0c7596b42 100644 --- a/readthedocs/builds/migrations/0023_add_status_code.py +++ b/readthedocs/builds/migrations/0023_add_status_code.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0022_migrate_protected_versions"), ] diff --git a/readthedocs/builds/migrations/0024_status_code_choices.py b/readthedocs/builds/migrations/0024_status_code_choices.py index dc5cdea9b18..e956e53de46 100644 --- a/readthedocs/builds/migrations/0024_status_code_choices.py +++ b/readthedocs/builds/migrations/0024_status_code_choices.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0023_add_status_code"), ] diff --git a/readthedocs/builds/migrations/0025_migrate_private_versions.py b/readthedocs/builds/migrations/0025_migrate_private_versions.py index c8d7c5f0fbb..8801a94b8bd 100644 --- a/readthedocs/builds/migrations/0025_migrate_private_versions.py +++ b/readthedocs/builds/migrations/0025_migrate_private_versions.py @@ -21,7 +21,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0024_status_code_choices"), ] diff --git a/readthedocs/builds/migrations/0026_add_hide_version_automation_rule.py b/readthedocs/builds/migrations/0026_add_hide_version_automation_rule.py index 061b5234c86..a901118a017 100644 --- a/readthedocs/builds/migrations/0026_add_hide_version_automation_rule.py +++ b/readthedocs/builds/migrations/0026_add_hide_version_automation_rule.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0025_migrate_private_versions"), ] diff --git a/readthedocs/builds/migrations/0027_add_privacy_level_automation_rules.py b/readthedocs/builds/migrations/0027_add_privacy_level_automation_rules.py index c5995bbd50e..5dd145bf2d5 100644 --- a/readthedocs/builds/migrations/0027_add_privacy_level_automation_rules.py +++ b/readthedocs/builds/migrations/0027_add_privacy_level_automation_rules.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0026_add_hide_version_automation_rule"), ] diff --git a/readthedocs/builds/migrations/0028_add_delete_version_action.py b/readthedocs/builds/migrations/0028_add_delete_version_action.py index 1610a04b099..a918e387a15 100644 --- a/readthedocs/builds/migrations/0028_add_delete_version_action.py +++ b/readthedocs/builds/migrations/0028_add_delete_version_action.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0027_add_privacy_level_automation_rules"), ] diff --git a/readthedocs/builds/migrations/0029_add_time_fields.py b/readthedocs/builds/migrations/0029_add_time_fields.py index ecc3f27c725..ed5712521dc 100644 --- a/readthedocs/builds/migrations/0029_add_time_fields.py +++ b/readthedocs/builds/migrations/0029_add_time_fields.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0028_add_delete_version_action"), ] diff --git a/readthedocs/builds/migrations/0030_add_automation_rule_matches.py b/readthedocs/builds/migrations/0030_add_automation_rule_matches.py index a64747838b6..6d7949f3e22 100644 --- a/readthedocs/builds/migrations/0030_add_automation_rule_matches.py +++ b/readthedocs/builds/migrations/0030_add_automation_rule_matches.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0029_add_time_fields"), ] diff --git a/readthedocs/builds/migrations/0031_add_version_fields_to_build.py b/readthedocs/builds/migrations/0031_add_version_fields_to_build.py index 23b78fb0f6c..9007e4ccfa7 100644 --- a/readthedocs/builds/migrations/0031_add_version_fields_to_build.py +++ b/readthedocs/builds/migrations/0031_add_version_fields_to_build.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0030_add_automation_rule_matches"), ] diff --git a/readthedocs/builds/migrations/0032_migrate_version_data_to_build.py b/readthedocs/builds/migrations/0032_migrate_version_data_to_build.py index c24a577e9e8..c9728ea36c8 100644 --- a/readthedocs/builds/migrations/0032_migrate_version_data_to_build.py +++ b/readthedocs/builds/migrations/0032_migrate_version_data_to_build.py @@ -12,7 +12,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0031_add_version_fields_to_build"), ] diff --git a/readthedocs/builds/migrations/0033_dont_cascade_delete_builds.py b/readthedocs/builds/migrations/0033_dont_cascade_delete_builds.py index 9a9215353ef..b2ce4493d15 100644 --- a/readthedocs/builds/migrations/0033_dont_cascade_delete_builds.py +++ b/readthedocs/builds/migrations/0033_dont_cascade_delete_builds.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0032_migrate_version_data_to_build"), ] diff --git a/readthedocs/builds/migrations/0034_remove_protected_privacy_level.py b/readthedocs/builds/migrations/0034_remove_protected_privacy_level.py index ffd10ba8184..a644aad4725 100644 --- a/readthedocs/builds/migrations/0034_remove_protected_privacy_level.py +++ b/readthedocs/builds/migrations/0034_remove_protected_privacy_level.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0033_dont_cascade_delete_builds"), ] diff --git a/readthedocs/builds/migrations/0035_backport_indexes.py b/readthedocs/builds/migrations/0035_backport_indexes.py index 2b6cb7d7f91..55980520bbf 100644 --- a/readthedocs/builds/migrations/0035_backport_indexes.py +++ b/readthedocs/builds/migrations/0035_backport_indexes.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0034_remove_protected_privacy_level"), ] diff --git a/readthedocs/builds/migrations/0036_change_mkdocs_name.py b/readthedocs/builds/migrations/0036_change_mkdocs_name.py index 4440416dcef..51b2d1b59b8 100644 --- a/readthedocs/builds/migrations/0036_change_mkdocs_name.py +++ b/readthedocs/builds/migrations/0036_change_mkdocs_name.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0035_backport_indexes"), ] diff --git a/readthedocs/builds/migrations/0037_alter_build_cold_storage.py b/readthedocs/builds/migrations/0037_alter_build_cold_storage.py index 00fd5136bbc..049a399ace5 100644 --- a/readthedocs/builds/migrations/0037_alter_build_cold_storage.py +++ b/readthedocs/builds/migrations/0037_alter_build_cold_storage.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0036_change_mkdocs_name"), ] diff --git a/readthedocs/builds/migrations/0038_add_new_jsonfields.py b/readthedocs/builds/migrations/0038_add_new_jsonfields.py index eb390f2d394..f9554ab7aa2 100644 --- a/readthedocs/builds/migrations/0038_add_new_jsonfields.py +++ b/readthedocs/builds/migrations/0038_add_new_jsonfields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0037_alter_build_cold_storage"), ] diff --git a/readthedocs/builds/migrations/0039_migrate_config_data.py b/readthedocs/builds/migrations/0039_migrate_config_data.py index 775e4d9430a..0c565847c77 100644 --- a/readthedocs/builds/migrations/0039_migrate_config_data.py +++ b/readthedocs/builds/migrations/0039_migrate_config_data.py @@ -35,7 +35,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0038_add_new_jsonfields"), ] diff --git a/readthedocs/builds/migrations/0040_remove_old_jsonfields.py b/readthedocs/builds/migrations/0040_remove_old_jsonfields.py index 448fb502723..e1430d02e13 100644 --- a/readthedocs/builds/migrations/0040_remove_old_jsonfields.py +++ b/readthedocs/builds/migrations/0040_remove_old_jsonfields.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0039_migrate_config_data"), ] diff --git a/readthedocs/builds/migrations/0041_track_task_id.py b/readthedocs/builds/migrations/0041_track_task_id.py index 5b7be6aa7d7..ff020ce7bb4 100644 --- a/readthedocs/builds/migrations/0041_track_task_id.py +++ b/readthedocs/builds/migrations/0041_track_task_id.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0040_remove_old_jsonfields"), ] diff --git a/readthedocs/builds/migrations/0042_version_state.py b/readthedocs/builds/migrations/0042_version_state.py index 202c17c7b5e..ad96994ccf5 100644 --- a/readthedocs/builds/migrations/0042_version_state.py +++ b/readthedocs/builds/migrations/0042_version_state.py @@ -19,7 +19,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0041_track_task_id"), ] diff --git a/readthedocs/builds/migrations/0043_add_cancelled_state.py b/readthedocs/builds/migrations/0043_add_cancelled_state.py index b5fcbd16f13..35cbee0853d 100644 --- a/readthedocs/builds/migrations/0043_add_cancelled_state.py +++ b/readthedocs/builds/migrations/0043_add_cancelled_state.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0042_version_state"), ] diff --git a/readthedocs/builds/migrations/0044_alter_version_documentation_type.py b/readthedocs/builds/migrations/0044_alter_version_documentation_type.py index 5d48ca59211..13e059be660 100644 --- a/readthedocs/builds/migrations/0044_alter_version_documentation_type.py +++ b/readthedocs/builds/migrations/0044_alter_version_documentation_type.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0043_add_cancelled_state"), ] diff --git a/readthedocs/builds/migrations/0045_alter_build_status.py b/readthedocs/builds/migrations/0045_alter_build_status.py index 027552fbb96..a3396e8b008 100644 --- a/readthedocs/builds/migrations/0045_alter_build_status.py +++ b/readthedocs/builds/migrations/0045_alter_build_status.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0044_alter_version_documentation_type"), ] diff --git a/readthedocs/builds/migrations/0046_identifier_null.py b/readthedocs/builds/migrations/0046_identifier_null.py index c4841072eea..ccc7077969b 100644 --- a/readthedocs/builds/migrations/0046_identifier_null.py +++ b/readthedocs/builds/migrations/0046_identifier_null.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0045_alter_build_status"), ] diff --git a/readthedocs/builds/migrations/0047_build_default_triggered.py b/readthedocs/builds/migrations/0047_build_default_triggered.py index 2898cf4d8fe..b67bfd3b539 100644 --- a/readthedocs/builds/migrations/0047_build_default_triggered.py +++ b/readthedocs/builds/migrations/0047_build_default_triggered.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0046_identifier_null"), ] diff --git a/readthedocs/builds/migrations/0048_add_build_data.py b/readthedocs/builds/migrations/0048_add_build_data.py index f55cd9f254a..792be3e6880 100644 --- a/readthedocs/builds/migrations/0048_add_build_data.py +++ b/readthedocs/builds/migrations/0048_add_build_data.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0047_build_default_triggered"), ] diff --git a/readthedocs/builds/migrations/0049_automation_rule_copy.py b/readthedocs/builds/migrations/0049_automation_rule_copy.py index 30ab74ab455..3c9c9f8ce16 100644 --- a/readthedocs/builds/migrations/0049_automation_rule_copy.py +++ b/readthedocs/builds/migrations/0049_automation_rule_copy.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0048_add_build_data"), ] diff --git a/readthedocs/builds/migrations/0050_build_readthedocs_yaml_path.py b/readthedocs/builds/migrations/0050_build_readthedocs_yaml_path.py index b88c5b6ea93..62b70690a5a 100644 --- a/readthedocs/builds/migrations/0050_build_readthedocs_yaml_path.py +++ b/readthedocs/builds/migrations/0050_build_readthedocs_yaml_path.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0049_automation_rule_copy"), ] diff --git a/readthedocs/builds/migrations/0051_add_addons_field.py b/readthedocs/builds/migrations/0051_add_addons_field.py index 019a222a2c9..8261c8d8f72 100644 --- a/readthedocs/builds/migrations/0051_add_addons_field.py +++ b/readthedocs/builds/migrations/0051_add_addons_field.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0050_build_readthedocs_yaml_path"), ] diff --git a/readthedocs/builds/migrations/0052_alter_versionautomationrule_polymorphic_ctype.py b/readthedocs/builds/migrations/0052_alter_versionautomationrule_polymorphic_ctype.py index edf23b4af9a..c95c21f1ca9 100644 --- a/readthedocs/builds/migrations/0052_alter_versionautomationrule_polymorphic_ctype.py +++ b/readthedocs/builds/migrations/0052_alter_versionautomationrule_polymorphic_ctype.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("builds", "0051_add_addons_field"), diff --git a/readthedocs/builds/migrations/0053_alter_version_build_data.py b/readthedocs/builds/migrations/0053_alter_version_build_data.py index 51c2a80b721..4229464f548 100644 --- a/readthedocs/builds/migrations/0053_alter_version_build_data.py +++ b/readthedocs/builds/migrations/0053_alter_version_build_data.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0052_alter_versionautomationrule_polymorphic_ctype"), ] diff --git a/readthedocs/builds/migrations/0054_add_builds_index_for_addons.py b/readthedocs/builds/migrations/0054_add_builds_index_for_addons.py index 26cca55bb80..7961de4813e 100644 --- a/readthedocs/builds/migrations/0054_add_builds_index_for_addons.py +++ b/readthedocs/builds/migrations/0054_add_builds_index_for_addons.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0053_alter_version_build_data"), ] @@ -13,8 +13,6 @@ class Migration(migrations.Migration): migrations.AlterIndexTogether( name="build", index_together={ - ("date", "id"), - ("version", "state", "type"), ("version", "state", "date", "success"), }, ), diff --git a/readthedocs/builds/migrations/0055_alter_versionautomationrule_priority.py b/readthedocs/builds/migrations/0055_alter_versionautomationrule_priority.py index c83d53bec7e..91b98255f0b 100644 --- a/readthedocs/builds/migrations/0055_alter_versionautomationrule_priority.py +++ b/readthedocs/builds/migrations/0055_alter_versionautomationrule_priority.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0054_add_builds_index_for_addons"), ] diff --git a/readthedocs/builds/migrations/0056_alter_versionautomationrule_priority.py b/readthedocs/builds/migrations/0056_alter_versionautomationrule_priority.py index 797108b631f..95b8e4dc1b4 100644 --- a/readthedocs/builds/migrations/0056_alter_versionautomationrule_priority.py +++ b/readthedocs/builds/migrations/0056_alter_versionautomationrule_priority.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0055_alter_versionautomationrule_priority"), ] diff --git a/readthedocs/builds/migrations/0057_migrate_timestamp_fields.py b/readthedocs/builds/migrations/0057_migrate_timestamp_fields.py index 5192f283882..f33d8669876 100644 --- a/readthedocs/builds/migrations/0057_migrate_timestamp_fields.py +++ b/readthedocs/builds/migrations/0057_migrate_timestamp_fields.py @@ -21,7 +21,7 @@ def migrate(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("builds", "0056_alter_versionautomationrule_priority"), diff --git a/readthedocs/builds/migrations/0058_alter_version_created_alter_version_modified.py b/readthedocs/builds/migrations/0058_alter_version_created_alter_version_modified.py index f66dea80bbe..817096155c5 100644 --- a/readthedocs/builds/migrations/0058_alter_version_created_alter_version_modified.py +++ b/readthedocs/builds/migrations/0058_alter_version_created_alter_version_modified.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0057_migrate_timestamp_fields"), diff --git a/readthedocs/builds/migrations/0059_add_version_date_index.py b/readthedocs/builds/migrations/0059_add_version_date_index.py index 81eb0f6c824..d72b6cbda5b 100644 --- a/readthedocs/builds/migrations/0059_add_version_date_index.py +++ b/readthedocs/builds/migrations/0059_add_version_date_index.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("builds", "0058_alter_version_created_alter_version_modified"), ] diff --git a/readthedocs/builds/migrations/0060_alter_version_slug.py b/readthedocs/builds/migrations/0060_alter_version_slug.py index ccf52e4fbc1..53e116da6ce 100644 --- a/readthedocs/builds/migrations/0060_alter_version_slug.py +++ b/readthedocs/builds/migrations/0060_alter_version_slug.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0059_add_version_date_index"), diff --git a/readthedocs/builds/migrations/0061_remove_unused_indexes.py b/readthedocs/builds/migrations/0061_remove_unused_indexes.py index 7673258953b..ccd04c59ae5 100644 --- a/readthedocs/builds/migrations/0061_remove_unused_indexes.py +++ b/readthedocs/builds/migrations/0061_remove_unused_indexes.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("builds", "0060_alter_version_slug"), @@ -15,7 +15,9 @@ class Migration(migrations.Migration): operations = [ migrations.AlterIndexTogether( name="build", - index_together={("version", "state", "type"), ("version", "state", "date", "success")}, + index_together={ + ("version", "state", "date", "success"), + }, ), migrations.AlterField( model_name="version", diff --git a/readthedocs/builds/migrations/0062_rename_indexes.py b/readthedocs/builds/migrations/0062_rename_indexes.py new file mode 100644 index 00000000000..ffcfe92c526 --- /dev/null +++ b/readthedocs/builds/migrations/0062_rename_indexes.py @@ -0,0 +1,20 @@ +# Generated by Django 5.2 on 2025-04-23 10:38 + +from django.db import migrations +from django_safemigrate import Safe + + +class Migration(migrations.Migration): + safe = Safe.before_deploy() + + dependencies = [ + ("builds", "0061_remove_unused_indexes"), + ] + + operations = [ + migrations.RenameIndex( + model_name="build", + new_name="builds_buil_version_ee7034_idx", + old_fields=("version", "state", "date", "success"), + ), + ] diff --git a/readthedocs/builds/models.py b/readthedocs/builds/models.py index f13ed806c34..d491e8f5c34 100644 --- a/readthedocs/builds/models.py +++ b/readthedocs/builds/models.py @@ -737,15 +737,13 @@ class Build(models.Model): class Meta: ordering = ["-date"] get_latest_by = "date" - index_together = [ - # Useful for `/_/addons/` API endpoint. - # Query: ``version.builds.filter(success=True, state=BUILD_STATE_FINISHED)`` - ["version", "state", "date", "success"], - ["version", "state", "type"], - ] indexes = [ models.Index(fields=["project", "date"]), models.Index(fields=["version", "date"]), + # Useful for `/_/addons/` API endpoint. + # Query: ``version.builds.filter(success=True, state=BUILD_STATE_FINISHED)`` + models.Index(fields=["version", "state", "date", "success"]), + models.Index(fields=["version", "state", "type"]), ] def __init__(self, *args, **kwargs): diff --git a/readthedocs/core/migrations/0001_initial.py b/readthedocs/core/migrations/0001_initial.py index d107d9ed8a1..5987fa6ff1c 100644 --- a/readthedocs/core/migrations/0001_initial.py +++ b/readthedocs/core/migrations/0001_initial.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] diff --git a/readthedocs/core/migrations/0002_make_userprofile_user_a_onetoonefield.py b/readthedocs/core/migrations/0002_make_userprofile_user_a_onetoonefield.py index 299f6738fbb..692d6c1eb77 100644 --- a/readthedocs/core/migrations/0002_make_userprofile_user_a_onetoonefield.py +++ b/readthedocs/core/migrations/0002_make_userprofile_user_a_onetoonefield.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0001_initial"), ] diff --git a/readthedocs/core/migrations/0003_add_banned_status.py b/readthedocs/core/migrations/0003_add_banned_status.py index 4fe4edf7b7d..eeec1bf4bb3 100644 --- a/readthedocs/core/migrations/0003_add_banned_status.py +++ b/readthedocs/core/migrations/0003_add_banned_status.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0002_make_userprofile_user_a_onetoonefield"), ] diff --git a/readthedocs/core/migrations/0004_ad-opt-out.py b/readthedocs/core/migrations/0004_ad-opt-out.py index ba6207bc75d..d5a92904672 100644 --- a/readthedocs/core/migrations/0004_ad-opt-out.py +++ b/readthedocs/core/migrations/0004_ad-opt-out.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0003_add_banned_status"), ] diff --git a/readthedocs/core/migrations/0005_migrate-old-passwords.py b/readthedocs/core/migrations/0005_migrate-old-passwords.py index 5f878c8e914..9047ab61930 100644 --- a/readthedocs/core/migrations/0005_migrate-old-passwords.py +++ b/readthedocs/core/migrations/0005_migrate-old-passwords.py @@ -22,7 +22,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0004_ad-opt-out"), ("auth", "0008_alter_user_username_max_length"), diff --git a/readthedocs/core/migrations/0006_remove_userprofile_allow_email.py b/readthedocs/core/migrations/0006_remove_userprofile_allow_email.py index 073466889e2..04ab7db9778 100644 --- a/readthedocs/core/migrations/0006_remove_userprofile_allow_email.py +++ b/readthedocs/core/migrations/0006_remove_userprofile_allow_email.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0005_migrate-old-passwords"), ] diff --git a/readthedocs/core/migrations/0007_historicaluser.py b/readthedocs/core/migrations/0007_historicaluser.py index f5430d1fd4a..e294dd32540 100644 --- a/readthedocs/core/migrations/0007_historicaluser.py +++ b/readthedocs/core/migrations/0007_historicaluser.py @@ -11,7 +11,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("core", "0006_remove_userprofile_allow_email"), diff --git a/readthedocs/core/migrations/0008_add_extra_history_fields.py b/readthedocs/core/migrations/0008_add_extra_history_fields.py index f9d42270d51..1b8b4141624 100644 --- a/readthedocs/core/migrations/0008_add_extra_history_fields.py +++ b/readthedocs/core/migrations/0008_add_extra_history_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0007_historicaluser"), ] diff --git a/readthedocs/core/migrations/0009_historicaluserprofile.py b/readthedocs/core/migrations/0009_historicaluserprofile.py index e8a55e8208e..99380b8639e 100644 --- a/readthedocs/core/migrations/0009_historicaluserprofile.py +++ b/readthedocs/core/migrations/0009_historicaluserprofile.py @@ -9,7 +9,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("core", "0008_add_extra_history_fields"), diff --git a/readthedocs/core/migrations/0010_add_time_fields.py b/readthedocs/core/migrations/0010_add_time_fields.py index 8d463ce94f6..45aa6312b43 100644 --- a/readthedocs/core/migrations/0010_add_time_fields.py +++ b/readthedocs/core/migrations/0010_add_time_fields.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0009_historicaluserprofile"), ] diff --git a/readthedocs/core/migrations/0011_alter_historicaluser_first_name.py b/readthedocs/core/migrations/0011_alter_historicaluser_first_name.py index 34a82a8fb2b..740a1ccfb22 100644 --- a/readthedocs/core/migrations/0011_alter_historicaluser_first_name.py +++ b/readthedocs/core/migrations/0011_alter_historicaluser_first_name.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0010_add_time_fields"), ] diff --git a/readthedocs/core/migrations/0012_add_newsletter_setting.py b/readthedocs/core/migrations/0012_add_newsletter_setting.py index 18cc12924ad..4548f477983 100644 --- a/readthedocs/core/migrations/0012_add_newsletter_setting.py +++ b/readthedocs/core/migrations/0012_add_newsletter_setting.py @@ -18,7 +18,7 @@ def migrate_null_values(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0011_alter_historicaluser_first_name"), ] diff --git a/readthedocs/core/migrations/0013_add_optout_email_config_file_deprecation.py b/readthedocs/core/migrations/0013_add_optout_email_config_file_deprecation.py index b303865d43f..eaabda85b7d 100644 --- a/readthedocs/core/migrations/0013_add_optout_email_config_file_deprecation.py +++ b/readthedocs/core/migrations/0013_add_optout_email_config_file_deprecation.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0012_add_newsletter_setting"), ] diff --git a/readthedocs/core/migrations/0014_optout_email_build_image_deprecation.py b/readthedocs/core/migrations/0014_optout_email_build_image_deprecation.py index f737347b00c..6fa23cd6d28 100644 --- a/readthedocs/core/migrations/0014_optout_email_build_image_deprecation.py +++ b/readthedocs/core/migrations/0014_optout_email_build_image_deprecation.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0013_add_optout_email_config_file_deprecation"), ] diff --git a/readthedocs/core/migrations/0015_remove_email_options.py b/readthedocs/core/migrations/0015_remove_email_options.py index f3160a3f70c..8f5f389c6d8 100644 --- a/readthedocs/core/migrations/0015_remove_email_options.py +++ b/readthedocs/core/migrations/0015_remove_email_options.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("core", "0014_optout_email_build_image_deprecation"), diff --git a/readthedocs/core/migrations/0016_update_dj_simple_history.py b/readthedocs/core/migrations/0016_update_dj_simple_history.py index 470769a6095..ae0845e740e 100644 --- a/readthedocs/core/migrations/0016_update_dj_simple_history.py +++ b/readthedocs/core/migrations/0016_update_dj_simple_history.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("core", "0015_remove_email_options"), diff --git a/readthedocs/core/migrations/0017_remove_unused_indexes.py b/readthedocs/core/migrations/0017_remove_unused_indexes.py index 839528a0aad..04693414999 100644 --- a/readthedocs/core/migrations/0017_remove_unused_indexes.py +++ b/readthedocs/core/migrations/0017_remove_unused_indexes.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("core", "0016_update_dj_simple_history"), diff --git a/readthedocs/core/utils/extend.py b/readthedocs/core/utils/extend.py index dd46f8b2c81..8e4ba01fad2 100644 --- a/readthedocs/core/utils/extend.py +++ b/readthedocs/core/utils/extend.py @@ -38,7 +38,7 @@ class SettingsOverrideMeta(type): Meta class for passing along classmethod class to the underlying class. """ - def __getattr__(cls, attr): # noqa: pep8 false positive + def __getattr__(cls, attr): # noqa proxy_class = get_override_class(cls, getattr(cls, "_default_class")) return getattr(proxy_class, attr) diff --git a/readthedocs/gold/migrations/0001_initial.py b/readthedocs/gold/migrations/0001_initial.py index 6bd9199bdef..f37ddc53107 100644 --- a/readthedocs/gold/migrations/0001_initial.py +++ b/readthedocs/gold/migrations/0001_initial.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("projects", "__first__"), diff --git a/readthedocs/gold/migrations/0002_rename_last_4_digits.py b/readthedocs/gold/migrations/0002_rename_last_4_digits.py index 57e809e6694..ff5c7c2f848 100644 --- a/readthedocs/gold/migrations/0002_rename_last_4_digits.py +++ b/readthedocs/gold/migrations/0002_rename_last_4_digits.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("gold", "0001_initial"), ] diff --git a/readthedocs/gold/migrations/0003_add_missing_model_change_migrations.py b/readthedocs/gold/migrations/0003_add_missing_model_change_migrations.py index 8c8273fd022..54f4bfdccb5 100644 --- a/readthedocs/gold/migrations/0003_add_missing_model_change_migrations.py +++ b/readthedocs/gold/migrations/0003_add_missing_model_change_migrations.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("gold", "0002_rename_last_4_digits"), ] diff --git a/readthedocs/gold/migrations/0004_add_vat_id.py b/readthedocs/gold/migrations/0004_add_vat_id.py index 947f3f93029..77e73efc2ae 100644 --- a/readthedocs/gold/migrations/0004_add_vat_id.py +++ b/readthedocs/gold/migrations/0004_add_vat_id.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("gold", "0003_add_missing_model_change_migrations"), ] diff --git a/readthedocs/gold/migrations/0005_last_4_digits_null.py b/readthedocs/gold/migrations/0005_last_4_digits_null.py index 50957f989b8..f4aa52a0f8f 100644 --- a/readthedocs/gold/migrations/0005_last_4_digits_null.py +++ b/readthedocs/gold/migrations/0005_last_4_digits_null.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("gold", "0004_add_vat_id"), ] diff --git a/readthedocs/gold/migrations/0006_remove_old_payments_field.py b/readthedocs/gold/migrations/0006_remove_old_payments_field.py index c02ddcd0fc2..6c719a38402 100644 --- a/readthedocs/gold/migrations/0006_remove_old_payments_field.py +++ b/readthedocs/gold/migrations/0006_remove_old_payments_field.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("gold", "0005_last_4_digits_null"), ] diff --git a/readthedocs/gold/migrations/0007_gold_level_varchar.py b/readthedocs/gold/migrations/0007_gold_level_varchar.py index d1f5846d6f4..1d8bb37dcd3 100644 --- a/readthedocs/gold/migrations/0007_gold_level_varchar.py +++ b/readthedocs/gold/migrations/0007_gold_level_varchar.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("gold", "0006_remove_old_payments_field"), ] diff --git a/readthedocs/integrations/migrations/0001_add_http_exchange.py b/readthedocs/integrations/migrations/0001_add_http_exchange.py index f85d20734ae..b377a2e620d 100644 --- a/readthedocs/integrations/migrations/0001_add_http_exchange.py +++ b/readthedocs/integrations/migrations/0001_add_http_exchange.py @@ -9,7 +9,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/integrations/migrations/0002_add-webhook.py b/readthedocs/integrations/migrations/0002_add-webhook.py index f23a4cf1989..6518e2277b1 100644 --- a/readthedocs/integrations/migrations/0002_add-webhook.py +++ b/readthedocs/integrations/migrations/0002_add-webhook.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0001_add_http_exchange"), ] diff --git a/readthedocs/integrations/migrations/0003_add_missing_model_change_migrations.py b/readthedocs/integrations/migrations/0003_add_missing_model_change_migrations.py index ed5239db120..9557059fc74 100644 --- a/readthedocs/integrations/migrations/0003_add_missing_model_change_migrations.py +++ b/readthedocs/integrations/migrations/0003_add_missing_model_change_migrations.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0002_add-webhook"), ] diff --git a/readthedocs/integrations/migrations/0004_add_integration_secret.py b/readthedocs/integrations/migrations/0004_add_integration_secret.py index d12e1ae3c39..f3f383ef478 100644 --- a/readthedocs/integrations/migrations/0004_add_integration_secret.py +++ b/readthedocs/integrations/migrations/0004_add_integration_secret.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0003_add_missing_model_change_migrations"), ] diff --git a/readthedocs/integrations/migrations/0005_change_default_integration_secret.py b/readthedocs/integrations/migrations/0005_change_default_integration_secret.py index a753ba003a3..c0dd5c0be09 100644 --- a/readthedocs/integrations/migrations/0005_change_default_integration_secret.py +++ b/readthedocs/integrations/migrations/0005_change_default_integration_secret.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0004_add_integration_secret"), ] diff --git a/readthedocs/integrations/migrations/0006_set-default-value-provider-data.py b/readthedocs/integrations/migrations/0006_set-default-value-provider-data.py index e6e66f56ece..0119572a1b0 100644 --- a/readthedocs/integrations/migrations/0006_set-default-value-provider-data.py +++ b/readthedocs/integrations/migrations/0006_set-default-value-provider-data.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0005_change_default_integration_secret"), ] diff --git a/readthedocs/integrations/migrations/0007_update-provider-data.py b/readthedocs/integrations/migrations/0007_update-provider-data.py index 49fc7f5d1d5..9c3aa8e1710 100644 --- a/readthedocs/integrations/migrations/0007_update-provider-data.py +++ b/readthedocs/integrations/migrations/0007_update-provider-data.py @@ -15,7 +15,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0006_set-default-value-provider-data"), ] diff --git a/readthedocs/integrations/migrations/0008_add_new_jsonfields.py b/readthedocs/integrations/migrations/0008_add_new_jsonfields.py index 52cfda0bb7f..cdc36f61be8 100644 --- a/readthedocs/integrations/migrations/0008_add_new_jsonfields.py +++ b/readthedocs/integrations/migrations/0008_add_new_jsonfields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0007_update-provider-data"), ] diff --git a/readthedocs/integrations/migrations/0009_migrate_headers_data.py b/readthedocs/integrations/migrations/0009_migrate_headers_data.py index 6fffea453f0..2bcc7613098 100644 --- a/readthedocs/integrations/migrations/0009_migrate_headers_data.py +++ b/readthedocs/integrations/migrations/0009_migrate_headers_data.py @@ -28,7 +28,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0008_add_new_jsonfields"), ] diff --git a/readthedocs/integrations/migrations/0010_remove_old_jsonfields.py b/readthedocs/integrations/migrations/0010_remove_old_jsonfields.py index 95e62301c5e..8ffc4fa1264 100644 --- a/readthedocs/integrations/migrations/0010_remove_old_jsonfields.py +++ b/readthedocs/integrations/migrations/0010_remove_old_jsonfields.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0009_migrate_headers_data"), ] diff --git a/readthedocs/integrations/migrations/0011_add_created_and_updated_fields.py b/readthedocs/integrations/migrations/0011_add_created_and_updated_fields.py index 2eca7d401a6..2261c78bca1 100644 --- a/readthedocs/integrations/migrations/0011_add_created_and_updated_fields.py +++ b/readthedocs/integrations/migrations/0011_add_created_and_updated_fields.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0010_remove_old_jsonfields"), ] diff --git a/readthedocs/integrations/migrations/0012_migrate_timestamp_fields.py b/readthedocs/integrations/migrations/0012_migrate_timestamp_fields.py index 1bd518d2153..49b3a3b5fd6 100644 --- a/readthedocs/integrations/migrations/0012_migrate_timestamp_fields.py +++ b/readthedocs/integrations/migrations/0012_migrate_timestamp_fields.py @@ -11,7 +11,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("integrations", "0011_add_created_and_updated_fields"), ] diff --git a/readthedocs/integrations/migrations/0013_set_timestamp_fields_as_no_null.py b/readthedocs/integrations/migrations/0013_set_timestamp_fields_as_no_null.py index 81113f6a7bc..d0b06cc4257 100644 --- a/readthedocs/integrations/migrations/0013_set_timestamp_fields_as_no_null.py +++ b/readthedocs/integrations/migrations/0013_set_timestamp_fields_as_no_null.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("integrations", "0012_migrate_timestamp_fields"), diff --git a/readthedocs/integrations/migrations/0014_add_index_speedup.py b/readthedocs/integrations/migrations/0014_add_index_speedup.py index 50a38eb157f..dd76db44062 100644 --- a/readthedocs/integrations/migrations/0014_add_index_speedup.py +++ b/readthedocs/integrations/migrations/0014_add_index_speedup.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("integrations", "0013_set_timestamp_fields_as_no_null"), ] diff --git a/readthedocs/invitations/migrations/0001_initial.py b/readthedocs/invitations/migrations/0001_initial.py index d68a4e1375b..8b35e60d769 100644 --- a/readthedocs/invitations/migrations/0001_initial.py +++ b/readthedocs/invitations/migrations/0001_initial.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/notifications/migrations/0001_initial.py b/readthedocs/notifications/migrations/0001_initial.py index fd9281cc170..79f5425e28c 100644 --- a/readthedocs/notifications/migrations/0001_initial.py +++ b/readthedocs/notifications/migrations/0001_initial.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/notifications/migrations/0002_notification_format_values.py b/readthedocs/notifications/migrations/0002_notification_format_values.py index 89b26d58ddc..0a8488d7aea 100644 --- a/readthedocs/notifications/migrations/0002_notification_format_values.py +++ b/readthedocs/notifications/migrations/0002_notification_format_values.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("notifications", "0001_initial"), ] diff --git a/readthedocs/notifications/migrations/0003_notification_indexes.py b/readthedocs/notifications/migrations/0003_notification_indexes.py index cb95c0e392b..df48bcdca30 100644 --- a/readthedocs/notifications/migrations/0003_notification_indexes.py +++ b/readthedocs/notifications/migrations/0003_notification_indexes.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("notifications", "0002_notification_format_values"), ] diff --git a/readthedocs/notifications/migrations/0004_remove_unused_notification.py b/readthedocs/notifications/migrations/0004_remove_unused_notification.py index 2a60d2f1e48..2d597528a39 100644 --- a/readthedocs/notifications/migrations/0004_remove_unused_notification.py +++ b/readthedocs/notifications/migrations/0004_remove_unused_notification.py @@ -10,7 +10,7 @@ def remove_unused_notification(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("notifications", "0003_notification_indexes"), diff --git a/readthedocs/oauth/migrations/0001_initial.py b/readthedocs/oauth/migrations/0001_initial.py index 707bea8d73c..8ce6bccfb12 100644 --- a/readthedocs/oauth/migrations/0001_initial.py +++ b/readthedocs/oauth/migrations/0001_initial.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] diff --git a/readthedocs/oauth/migrations/0002_combine_services.py b/readthedocs/oauth/migrations/0002_combine_services.py index ca8d6068041..e043561edc5 100644 --- a/readthedocs/oauth/migrations/0002_combine_services.py +++ b/readthedocs/oauth/migrations/0002_combine_services.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("oauth", "0001_initial"), diff --git a/readthedocs/oauth/migrations/0003_move_github.py b/readthedocs/oauth/migrations/0003_move_github.py index bdb78a149c5..a7d8236dbdd 100644 --- a/readthedocs/oauth/migrations/0003_move_github.py +++ b/readthedocs/oauth/migrations/0003_move_github.py @@ -161,7 +161,7 @@ def reverse_move_repos(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0002_combine_services"), ] diff --git a/readthedocs/oauth/migrations/0004_drop_github_and_bitbucket_models.py b/readthedocs/oauth/migrations/0004_drop_github_and_bitbucket_models.py index 6aae83cf983..067548a01c5 100644 --- a/readthedocs/oauth/migrations/0004_drop_github_and_bitbucket_models.py +++ b/readthedocs/oauth/migrations/0004_drop_github_and_bitbucket_models.py @@ -17,7 +17,7 @@ def forwards_remove_content_types(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0003_move_github"), ] diff --git a/readthedocs/oauth/migrations/0005_add_account_relation.py b/readthedocs/oauth/migrations/0005_add_account_relation.py index 4f2a7d7983d..1cd0241bfee 100644 --- a/readthedocs/oauth/migrations/0005_add_account_relation.py +++ b/readthedocs/oauth/migrations/0005_add_account_relation.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("socialaccount", "0002_token_max_lengths"), ("oauth", "0004_drop_github_and_bitbucket_models"), diff --git a/readthedocs/oauth/migrations/0006_move_oauth_source.py b/readthedocs/oauth/migrations/0006_move_oauth_source.py index a8a6b62120b..2b3f71c3eef 100644 --- a/readthedocs/oauth/migrations/0006_move_oauth_source.py +++ b/readthedocs/oauth/migrations/0006_move_oauth_source.py @@ -38,7 +38,7 @@ def backwards_move_org_source(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0005_add_account_relation"), ] diff --git a/readthedocs/oauth/migrations/0007_org_slug_nonunique.py b/readthedocs/oauth/migrations/0007_org_slug_nonunique.py index 92b063771a1..558de8adf15 100644 --- a/readthedocs/oauth/migrations/0007_org_slug_nonunique.py +++ b/readthedocs/oauth/migrations/0007_org_slug_nonunique.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0006_move_oauth_source"), ] diff --git a/readthedocs/oauth/migrations/0008_add-project-relation.py b/readthedocs/oauth/migrations/0008_add-project-relation.py index 556c8d8b292..f1dae136c2f 100644 --- a/readthedocs/oauth/migrations/0008_add-project-relation.py +++ b/readthedocs/oauth/migrations/0008_add-project-relation.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0007_org_slug_nonunique"), ] diff --git a/readthedocs/oauth/migrations/0009_add_missing_model_change_migrations.py b/readthedocs/oauth/migrations/0009_add_missing_model_change_migrations.py index 39a2372c9e4..e09f20e5d33 100644 --- a/readthedocs/oauth/migrations/0009_add_missing_model_change_migrations.py +++ b/readthedocs/oauth/migrations/0009_add_missing_model_change_migrations.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0008_add-project-relation"), ] diff --git a/readthedocs/oauth/migrations/0010_index_full_name.py b/readthedocs/oauth/migrations/0010_index_full_name.py index 579b2b5bde7..a17b618af2f 100644 --- a/readthedocs/oauth/migrations/0010_index_full_name.py +++ b/readthedocs/oauth/migrations/0010_index_full_name.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0009_add_missing_model_change_migrations"), ] diff --git a/readthedocs/oauth/migrations/0011_add_default_branch.py b/readthedocs/oauth/migrations/0011_add_default_branch.py index 40929bcbe7e..a85caaae892 100644 --- a/readthedocs/oauth/migrations/0011_add_default_branch.py +++ b/readthedocs/oauth/migrations/0011_add_default_branch.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0010_index_full_name"), ] diff --git a/readthedocs/oauth/migrations/0012_create_new_table_for_remote_organization_normalization.py b/readthedocs/oauth/migrations/0012_create_new_table_for_remote_organization_normalization.py index 3a4ac1e492f..773cb923b80 100644 --- a/readthedocs/oauth/migrations/0012_create_new_table_for_remote_organization_normalization.py +++ b/readthedocs/oauth/migrations/0012_create_new_table_for_remote_organization_normalization.py @@ -9,7 +9,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("socialaccount", "0003_extra_data_default_dict"), migrations.swappable_dependency(settings.AUTH_USER_MODEL), diff --git a/readthedocs/oauth/migrations/0013_create_new_table_for_remote_repository_normalization.py b/readthedocs/oauth/migrations/0013_create_new_table_for_remote_repository_normalization.py index 9bc87d6b3c4..553cfac44e2 100644 --- a/readthedocs/oauth/migrations/0013_create_new_table_for_remote_repository_normalization.py +++ b/readthedocs/oauth/migrations/0013_create_new_table_for_remote_repository_normalization.py @@ -9,7 +9,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("socialaccount", "0003_extra_data_default_dict"), ("projects", "0067_change_max_length_feature_id"), diff --git a/readthedocs/oauth/migrations/0014_remove_remoterepository_project.py b/readthedocs/oauth/migrations/0014_remove_remoterepository_project.py index 48cfa84fbdd..dd524cea249 100644 --- a/readthedocs/oauth/migrations/0014_remove_remoterepository_project.py +++ b/readthedocs/oauth/migrations/0014_remove_remoterepository_project.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0013_create_new_table_for_remote_repository_normalization"), ("projects", "0077_remote_repository_data_migration"), diff --git a/readthedocs/oauth/migrations/0015_increase_avatar_url_length.py b/readthedocs/oauth/migrations/0015_increase_avatar_url_length.py index ae96b418251..d4d4533e547 100644 --- a/readthedocs/oauth/migrations/0015_increase_avatar_url_length.py +++ b/readthedocs/oauth/migrations/0015_increase_avatar_url_length.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0014_remove_remoterepository_project"), ] diff --git a/readthedocs/oauth/migrations/0016_deprecate_old_vcs.py b/readthedocs/oauth/migrations/0016_deprecate_old_vcs.py index b87cee311ba..64ff3a803aa 100644 --- a/readthedocs/oauth/migrations/0016_deprecate_old_vcs.py +++ b/readthedocs/oauth/migrations/0016_deprecate_old_vcs.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("oauth", "0015_increase_avatar_url_length"), ] diff --git a/readthedocs/oauth/migrations/0017_remove_unused_indexes.py b/readthedocs/oauth/migrations/0017_remove_unused_indexes.py index d1edeb92caa..0681699f9e9 100644 --- a/readthedocs/oauth/migrations/0017_remove_unused_indexes.py +++ b/readthedocs/oauth/migrations/0017_remove_unused_indexes.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("oauth", "0016_deprecate_old_vcs"), diff --git a/readthedocs/oauth/migrations/0018_githubapp.py b/readthedocs/oauth/migrations/0018_githubapp.py index e8b28ec0924..f383dcfd2e9 100644 --- a/readthedocs/oauth/migrations/0018_githubapp.py +++ b/readthedocs/oauth/migrations/0018_githubapp.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("oauth", "0017_remove_unused_indexes"), diff --git a/readthedocs/oauth/models.py b/readthedocs/oauth/models.py index 44430622ff2..4753410de64 100644 --- a/readthedocs/oauth/models.py +++ b/readthedocs/oauth/models.py @@ -74,7 +74,7 @@ class GitHubAppInstallation(TimeStampedModel): ) target_type = models.CharField( help_text=_("Account type that the target_id belongs to (user or organization)"), - choices=GitHubAccountType.choices, + choices=GitHubAccountType, max_length=255, ) extra_data = models.JSONField( diff --git a/readthedocs/organizations/migrations/0001_squashed.py b/readthedocs/organizations/migrations/0001_squashed.py index ed5d75be231..fec73b20de4 100644 --- a/readthedocs/organizations/migrations/0001_squashed.py +++ b/readthedocs/organizations/migrations/0001_squashed.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/organizations/migrations/0002_update_meta_options.py b/readthedocs/organizations/migrations/0002_update_meta_options.py index 3ea10863652..a2319fd1dc0 100644 --- a/readthedocs/organizations/migrations/0002_update_meta_options.py +++ b/readthedocs/organizations/migrations/0002_update_meta_options.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0001_squashed"), ] diff --git a/readthedocs/organizations/migrations/0003_team_auto_join_email_users.py b/readthedocs/organizations/migrations/0003_team_auto_join_email_users.py index fc68de0d4a5..4eaf73fdcbc 100644 --- a/readthedocs/organizations/migrations/0003_team_auto_join_email_users.py +++ b/readthedocs/organizations/migrations/0003_team_auto_join_email_users.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0002_update_meta_options"), ] diff --git a/readthedocs/organizations/migrations/0004_organization_max_concurrent_builds.py b/readthedocs/organizations/migrations/0004_organization_max_concurrent_builds.py index 64e49cdb14b..5bb60b912c7 100644 --- a/readthedocs/organizations/migrations/0004_organization_max_concurrent_builds.py +++ b/readthedocs/organizations/migrations/0004_organization_max_concurrent_builds.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0003_team_auto_join_email_users"), ] diff --git a/readthedocs/organizations/migrations/0005_historicalorganization_historicalteam.py b/readthedocs/organizations/migrations/0005_historicalorganization_historicalteam.py index 783bc25398e..e8da29878fe 100644 --- a/readthedocs/organizations/migrations/0005_historicalorganization_historicalteam.py +++ b/readthedocs/organizations/migrations/0005_historicalorganization_historicalteam.py @@ -9,7 +9,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("organizations", "0004_organization_max_concurrent_builds"), diff --git a/readthedocs/organizations/migrations/0006_add_assets_cleaned.py b/readthedocs/organizations/migrations/0006_add_assets_cleaned.py index ac62346248d..097a8d54326 100644 --- a/readthedocs/organizations/migrations/0006_add_assets_cleaned.py +++ b/readthedocs/organizations/migrations/0006_add_assets_cleaned.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0005_historicalorganization_historicalteam"), ] diff --git a/readthedocs/organizations/migrations/0007_add_extra_history_fields.py b/readthedocs/organizations/migrations/0007_add_extra_history_fields.py index c0e93f5574f..1eccc11b67a 100644 --- a/readthedocs/organizations/migrations/0007_add_extra_history_fields.py +++ b/readthedocs/organizations/migrations/0007_add_extra_history_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0006_add_assets_cleaned"), ] diff --git a/readthedocs/organizations/migrations/0008_migrate_old_invitations.py b/readthedocs/organizations/migrations/0008_migrate_old_invitations.py index 76203d3c526..1be785850d0 100644 --- a/readthedocs/organizations/migrations/0008_migrate_old_invitations.py +++ b/readthedocs/organizations/migrations/0008_migrate_old_invitations.py @@ -42,7 +42,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0007_add_extra_history_fields"), ] diff --git a/readthedocs/organizations/migrations/0009_update_meta_options.py b/readthedocs/organizations/migrations/0009_update_meta_options.py index d81809147c1..855718c00d3 100644 --- a/readthedocs/organizations/migrations/0009_update_meta_options.py +++ b/readthedocs/organizations/migrations/0009_update_meta_options.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0008_migrate_old_invitations"), ] diff --git a/readthedocs/organizations/migrations/0010_add_stripe_customer.py b/readthedocs/organizations/migrations/0010_add_stripe_customer.py index cfe608d02a5..e45a4a6c057 100644 --- a/readthedocs/organizations/migrations/0010_add_stripe_customer.py +++ b/readthedocs/organizations/migrations/0010_add_stripe_customer.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("djstripe", "0010_alter_customer_balance"), ("organizations", "0009_update_meta_options"), diff --git a/readthedocs/organizations/migrations/0011_add_stripe_subscription_field.py b/readthedocs/organizations/migrations/0011_add_stripe_subscription_field.py index a40bf35ddfd..1d479be02d3 100644 --- a/readthedocs/organizations/migrations/0011_add_stripe_subscription_field.py +++ b/readthedocs/organizations/migrations/0011_add_stripe_subscription_field.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("djstripe", "0010_alter_customer_balance"), ("organizations", "0010_add_stripe_customer"), diff --git a/readthedocs/organizations/migrations/0012_add_organization_never_disable.py b/readthedocs/organizations/migrations/0012_add_organization_never_disable.py index 56b52b95e50..9f3f2496dc9 100644 --- a/readthedocs/organizations/migrations/0012_add_organization_never_disable.py +++ b/readthedocs/organizations/migrations/0012_add_organization_never_disable.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("organizations", "0011_add_stripe_subscription_field"), ] diff --git a/readthedocs/organizations/migrations/0013_update_naming.py b/readthedocs/organizations/migrations/0013_update_naming.py index ecc371d51f3..5d281cd31b5 100644 --- a/readthedocs/organizations/migrations/0013_update_naming.py +++ b/readthedocs/organizations/migrations/0013_update_naming.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("organizations", "0012_add_organization_never_disable"), diff --git a/readthedocs/organizations/migrations/0014_update_dj_simple_history.py b/readthedocs/organizations/migrations/0014_update_dj_simple_history.py index 843675d0123..f6fc9ac704a 100644 --- a/readthedocs/organizations/migrations/0014_update_dj_simple_history.py +++ b/readthedocs/organizations/migrations/0014_update_dj_simple_history.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("organizations", "0013_update_naming"), ] diff --git a/readthedocs/organizations/migrations/0015_remove_unused_indexes.py b/readthedocs/organizations/migrations/0015_remove_unused_indexes.py index 7794e7fd6b3..51e986bd40e 100644 --- a/readthedocs/organizations/migrations/0015_remove_unused_indexes.py +++ b/readthedocs/organizations/migrations/0015_remove_unused_indexes.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("organizations", "0014_update_dj_simple_history"), diff --git a/readthedocs/projects/migrations/0001_initial.py b/readthedocs/projects/migrations/0001_initial.py index 7345208bd7b..8a14d7b5859 100644 --- a/readthedocs/projects/migrations/0001_initial.py +++ b/readthedocs/projects/migrations/0001_initial.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("taggit", "0001_initial"), migrations.swappable_dependency(settings.AUTH_USER_MODEL), diff --git a/readthedocs/projects/migrations/0002_add_importedfile_model.py b/readthedocs/projects/migrations/0002_add_importedfile_model.py index fbc1c5e95ac..2cc10654250 100644 --- a/readthedocs/projects/migrations/0002_add_importedfile_model.py +++ b/readthedocs/projects/migrations/0002_add_importedfile_model.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("builds", "0001_initial"), ("projects", "0001_initial"), diff --git a/readthedocs/projects/migrations/0003_project_cdn_enabled.py b/readthedocs/projects/migrations/0003_project_cdn_enabled.py index 80511e491e7..8dd3c036961 100644 --- a/readthedocs/projects/migrations/0003_project_cdn_enabled.py +++ b/readthedocs/projects/migrations/0003_project_cdn_enabled.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0002_add_importedfile_model"), ] diff --git a/readthedocs/projects/migrations/0004_add_project_container_image.py b/readthedocs/projects/migrations/0004_add_project_container_image.py index 5e69c57c3dd..4c0236c4f48 100644 --- a/readthedocs/projects/migrations/0004_add_project_container_image.py +++ b/readthedocs/projects/migrations/0004_add_project_container_image.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0003_project_cdn_enabled"), ] diff --git a/readthedocs/projects/migrations/0005_sync_project_model.py b/readthedocs/projects/migrations/0005_sync_project_model.py index 6472d1b1dbc..f92a71abf93 100644 --- a/readthedocs/projects/migrations/0005_sync_project_model.py +++ b/readthedocs/projects/migrations/0005_sync_project_model.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0004_add_project_container_image"), ] diff --git a/readthedocs/projects/migrations/0006_add_domain_models.py b/readthedocs/projects/migrations/0006_add_domain_models.py index 9e66b420e70..d61cc1dc756 100644 --- a/readthedocs/projects/migrations/0006_add_domain_models.py +++ b/readthedocs/projects/migrations/0006_add_domain_models.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0005_sync_project_model"), ] diff --git a/readthedocs/projects/migrations/0007_migrate_canonical_data.py b/readthedocs/projects/migrations/0007_migrate_canonical_data.py index 62c30b9d0e4..7065c82e07a 100644 --- a/readthedocs/projects/migrations/0007_migrate_canonical_data.py +++ b/readthedocs/projects/migrations/0007_migrate_canonical_data.py @@ -29,7 +29,7 @@ def migrate_canonical(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0006_add_domain_models"), ] diff --git a/readthedocs/projects/migrations/0008_add_subproject_alias_prefix.py b/readthedocs/projects/migrations/0008_add_subproject_alias_prefix.py index ac16277db43..fcfd2bedffa 100644 --- a/readthedocs/projects/migrations/0008_add_subproject_alias_prefix.py +++ b/readthedocs/projects/migrations/0008_add_subproject_alias_prefix.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0007_migrate_canonical_data"), ] diff --git a/readthedocs/projects/migrations/0009_add_domain_field.py b/readthedocs/projects/migrations/0009_add_domain_field.py index f60865c5d18..3bdf18bee03 100644 --- a/readthedocs/projects/migrations/0009_add_domain_field.py +++ b/readthedocs/projects/migrations/0009_add_domain_field.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0008_add_subproject_alias_prefix"), ] diff --git a/readthedocs/projects/migrations/0010_migrate_domain_data.py b/readthedocs/projects/migrations/0010_migrate_domain_data.py index d01c5d13b11..25838a587ba 100644 --- a/readthedocs/projects/migrations/0010_migrate_domain_data.py +++ b/readthedocs/projects/migrations/0010_migrate_domain_data.py @@ -39,7 +39,7 @@ def migrate_url(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0009_add_domain_field"), ] diff --git a/readthedocs/projects/migrations/0011_delete-url.py b/readthedocs/projects/migrations/0011_delete-url.py index 2f8933bdbc2..80b4bb84b08 100644 --- a/readthedocs/projects/migrations/0011_delete-url.py +++ b/readthedocs/projects/migrations/0011_delete-url.py @@ -3,7 +3,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0010_migrate_domain_data"), ] diff --git a/readthedocs/projects/migrations/0012_proper-name-for-install-project.py b/readthedocs/projects/migrations/0012_proper-name-for-install-project.py index 2bb12ccbf0c..de8933e4598 100644 --- a/readthedocs/projects/migrations/0012_proper-name-for-install-project.py +++ b/readthedocs/projects/migrations/0012_proper-name-for-install-project.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0011_delete-url"), ] diff --git a/readthedocs/projects/migrations/0013_add-container-limits.py b/readthedocs/projects/migrations/0013_add-container-limits.py index e914355c4d8..973b53e695a 100644 --- a/readthedocs/projects/migrations/0013_add-container-limits.py +++ b/readthedocs/projects/migrations/0013_add-container-limits.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0012_proper-name-for-install-project"), ] diff --git a/readthedocs/projects/migrations/0014_add-state-tracking.py b/readthedocs/projects/migrations/0014_add-state-tracking.py index 3cce1a1fa73..b321179d8c8 100644 --- a/readthedocs/projects/migrations/0014_add-state-tracking.py +++ b/readthedocs/projects/migrations/0014_add-state-tracking.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0013_add-container-limits"), ] diff --git a/readthedocs/projects/migrations/0015_add_project_allow_promos.py b/readthedocs/projects/migrations/0015_add_project_allow_promos.py index 3e0b4067367..5c49895607b 100644 --- a/readthedocs/projects/migrations/0015_add_project_allow_promos.py +++ b/readthedocs/projects/migrations/0015_add_project_allow_promos.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0014_add-state-tracking"), ] diff --git a/readthedocs/projects/migrations/0016_build-queue-name.py b/readthedocs/projects/migrations/0016_build-queue-name.py index 4b61ef16997..04ed8ffb21b 100644 --- a/readthedocs/projects/migrations/0016_build-queue-name.py +++ b/readthedocs/projects/migrations/0016_build-queue-name.py @@ -14,7 +14,7 @@ def update_build_queue(apps, schema): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0015_add_project_allow_promos"), ] diff --git a/readthedocs/projects/migrations/0017_add_domain_https.py b/readthedocs/projects/migrations/0017_add_domain_https.py index de394c3d9f4..74f917c4f15 100644 --- a/readthedocs/projects/migrations/0017_add_domain_https.py +++ b/readthedocs/projects/migrations/0017_add_domain_https.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0016_build-queue-name"), ] diff --git a/readthedocs/projects/migrations/0018_fix-translation-model.py b/readthedocs/projects/migrations/0018_fix-translation-model.py index 2c781222002..6b5147c6576 100644 --- a/readthedocs/projects/migrations/0018_fix-translation-model.py +++ b/readthedocs/projects/migrations/0018_fix-translation-model.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0017_add_domain_https"), ] diff --git a/readthedocs/projects/migrations/0019_add-features.py b/readthedocs/projects/migrations/0019_add-features.py index 76409683e2d..99decaad77c 100644 --- a/readthedocs/projects/migrations/0019_add-features.py +++ b/readthedocs/projects/migrations/0019_add-features.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0018_fix-translation-model"), ] diff --git a/readthedocs/projects/migrations/0020_add-api-project-proxy.py b/readthedocs/projects/migrations/0020_add-api-project-proxy.py index 6deece71e94..ae024aa760f 100644 --- a/readthedocs/projects/migrations/0020_add-api-project-proxy.py +++ b/readthedocs/projects/migrations/0020_add-api-project-proxy.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0019_add-features"), ] diff --git a/readthedocs/projects/migrations/0021_add-webhook-deprecation-feature.py b/readthedocs/projects/migrations/0021_add-webhook-deprecation-feature.py index f2161f752bc..113da389a91 100644 --- a/readthedocs/projects/migrations/0021_add-webhook-deprecation-feature.py +++ b/readthedocs/projects/migrations/0021_add-webhook-deprecation-feature.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0020_add-api-project-proxy"), ] diff --git a/readthedocs/projects/migrations/0022_add-alias-slug.py b/readthedocs/projects/migrations/0022_add-alias-slug.py index b9957ea5d64..e946a8a4fe9 100644 --- a/readthedocs/projects/migrations/0022_add-alias-slug.py +++ b/readthedocs/projects/migrations/0022_add-alias-slug.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0021_add-webhook-deprecation-feature"), ] diff --git a/readthedocs/projects/migrations/0023_migrate-alias-slug.py b/readthedocs/projects/migrations/0023_migrate-alias-slug.py index 6644561ad30..81081472161 100644 --- a/readthedocs/projects/migrations/0023_migrate-alias-slug.py +++ b/readthedocs/projects/migrations/0023_migrate-alias-slug.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() def migrate_data(apps, schema_editor): # Keep things that slugify wouldn't normally accept, diff --git a/readthedocs/projects/migrations/0024_add-show-version-warning.py b/readthedocs/projects/migrations/0024_add-show-version-warning.py index 5466e46f089..b26a9949d4b 100644 --- a/readthedocs/projects/migrations/0024_add-show-version-warning.py +++ b/readthedocs/projects/migrations/0024_add-show-version-warning.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0023_migrate-alias-slug"), ] diff --git a/readthedocs/projects/migrations/0025_show-version-warning-existing-projects.py b/readthedocs/projects/migrations/0025_show-version-warning-existing-projects.py index 0ad66c92cec..6b976d03155 100644 --- a/readthedocs/projects/migrations/0025_show-version-warning-existing-projects.py +++ b/readthedocs/projects/migrations/0025_show-version-warning-existing-projects.py @@ -9,7 +9,7 @@ def show_version_warning_to_existing_projects(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0024_add-show-version-warning"), ] diff --git a/readthedocs/projects/migrations/0026_ad-free-option.py b/readthedocs/projects/migrations/0026_ad-free-option.py index c9211fb5daf..d9e980aea25 100644 --- a/readthedocs/projects/migrations/0026_ad-free-option.py +++ b/readthedocs/projects/migrations/0026_ad-free-option.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0025_show-version-warning-existing-projects"), ] diff --git a/readthedocs/projects/migrations/0027_remove_json_with_html_feature.py b/readthedocs/projects/migrations/0027_remove_json_with_html_feature.py index 13b17906d7e..2c1a4394344 100644 --- a/readthedocs/projects/migrations/0027_remove_json_with_html_feature.py +++ b/readthedocs/projects/migrations/0027_remove_json_with_html_feature.py @@ -20,7 +20,7 @@ def reverse_add_feature(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0026_ad-free-option"), ] diff --git a/readthedocs/projects/migrations/0028_remove_comments_and_update_old_migration.py b/readthedocs/projects/migrations/0028_remove_comments_and_update_old_migration.py index f8ed7402dc0..fec8b1207b1 100644 --- a/readthedocs/projects/migrations/0028_remove_comments_and_update_old_migration.py +++ b/readthedocs/projects/migrations/0028_remove_comments_and_update_old_migration.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0027_remove_json_with_html_feature"), ] diff --git a/readthedocs/projects/migrations/0029_add_additional_languages.py b/readthedocs/projects/migrations/0029_add_additional_languages.py index 843847286f9..d58f84144d0 100644 --- a/readthedocs/projects/migrations/0029_add_additional_languages.py +++ b/readthedocs/projects/migrations/0029_add_additional_languages.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0028_remove_comments_and_update_old_migration"), ] diff --git a/readthedocs/projects/migrations/0030_change-max-length-project-slug.py b/readthedocs/projects/migrations/0030_change-max-length-project-slug.py index 5ec2322830a..bd75da6e57d 100644 --- a/readthedocs/projects/migrations/0030_change-max-length-project-slug.py +++ b/readthedocs/projects/migrations/0030_change-max-length-project-slug.py @@ -24,7 +24,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0029_add_additional_languages"), ] diff --git a/readthedocs/projects/migrations/0031_add_modified_date_importedfile.py b/readthedocs/projects/migrations/0031_add_modified_date_importedfile.py index 8b0f67c7044..70c4ceba979 100644 --- a/readthedocs/projects/migrations/0031_add_modified_date_importedfile.py +++ b/readthedocs/projects/migrations/0031_add_modified_date_importedfile.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0030_change-max-length-project-slug"), ] diff --git a/readthedocs/projects/migrations/0032_increase_webhook_maxsize.py b/readthedocs/projects/migrations/0032_increase_webhook_maxsize.py index baad361e193..65b4a9e0614 100644 --- a/readthedocs/projects/migrations/0032_increase_webhook_maxsize.py +++ b/readthedocs/projects/migrations/0032_increase_webhook_maxsize.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0031_add_modified_date_importedfile"), ] diff --git a/readthedocs/projects/migrations/0033_add_environment_variables.py b/readthedocs/projects/migrations/0033_add_environment_variables.py index 503cfb900d4..202b05d10c1 100644 --- a/readthedocs/projects/migrations/0033_add_environment_variables.py +++ b/readthedocs/projects/migrations/0033_add_environment_variables.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0032_increase_webhook_maxsize"), ] diff --git a/readthedocs/projects/migrations/0034_remove_unused_project_model_fields.py b/readthedocs/projects/migrations/0034_remove_unused_project_model_fields.py index 1418f186851..8fe1d849c19 100644 --- a/readthedocs/projects/migrations/0034_remove_unused_project_model_fields.py +++ b/readthedocs/projects/migrations/0034_remove_unused_project_model_fields.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0033_add_environment_variables"), ] diff --git a/readthedocs/projects/migrations/0035_container_time_limit_as_integer.py b/readthedocs/projects/migrations/0035_container_time_limit_as_integer.py index b5db8f72cfc..70151e3371a 100644 --- a/readthedocs/projects/migrations/0035_container_time_limit_as_integer.py +++ b/readthedocs/projects/migrations/0035_container_time_limit_as_integer.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0034_remove_unused_project_model_fields"), ] diff --git a/readthedocs/projects/migrations/0036_remove-auto-doctype.py b/readthedocs/projects/migrations/0036_remove-auto-doctype.py index 2dbf91df675..528dca356c9 100644 --- a/readthedocs/projects/migrations/0036_remove-auto-doctype.py +++ b/readthedocs/projects/migrations/0036_remove-auto-doctype.py @@ -12,7 +12,7 @@ def migrate_auto_doctype(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0035_container_time_limit_as_integer"), ] diff --git a/readthedocs/projects/migrations/0037_add_htmlfile.py b/readthedocs/projects/migrations/0037_add_htmlfile.py index 234d277c427..165bb310e05 100644 --- a/readthedocs/projects/migrations/0037_add_htmlfile.py +++ b/readthedocs/projects/migrations/0037_add_htmlfile.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0036_remove-auto-doctype"), ] diff --git a/readthedocs/projects/migrations/0038_change-default-python-interpreter.py b/readthedocs/projects/migrations/0038_change-default-python-interpreter.py index 7e40ece6e22..f21fa561454 100644 --- a/readthedocs/projects/migrations/0038_change-default-python-interpreter.py +++ b/readthedocs/projects/migrations/0038_change-default-python-interpreter.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0037_add_htmlfile"), ] diff --git a/readthedocs/projects/migrations/0039_update-doctype-helptext.py b/readthedocs/projects/migrations/0039_update-doctype-helptext.py index 47eb9476677..eb4d826a477 100644 --- a/readthedocs/projects/migrations/0039_update-doctype-helptext.py +++ b/readthedocs/projects/migrations/0039_update-doctype-helptext.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0038_change-default-python-interpreter"), ] diff --git a/readthedocs/projects/migrations/0040_increase_path_max_length.py b/readthedocs/projects/migrations/0040_increase_path_max_length.py index 837f7a3fe3b..4be98cabcda 100644 --- a/readthedocs/projects/migrations/0040_increase_path_max_length.py +++ b/readthedocs/projects/migrations/0040_increase_path_max_length.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0039_update-doctype-helptext"), ] diff --git a/readthedocs/projects/migrations/0041_index-repo-field.py b/readthedocs/projects/migrations/0041_index-repo-field.py index 22669e1030b..4e4a5d0dac2 100644 --- a/readthedocs/projects/migrations/0041_index-repo-field.py +++ b/readthedocs/projects/migrations/0041_index-repo-field.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0040_increase_path_max_length"), ] diff --git a/readthedocs/projects/migrations/0042_increase_env_variable_value_max_length.py b/readthedocs/projects/migrations/0042_increase_env_variable_value_max_length.py index a86415b5626..e815857d6f0 100644 --- a/readthedocs/projects/migrations/0042_increase_env_variable_value_max_length.py +++ b/readthedocs/projects/migrations/0042_increase_env_variable_value_max_length.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0041_index-repo-field"), ] diff --git a/readthedocs/projects/migrations/0043_add-build-field.py b/readthedocs/projects/migrations/0043_add-build-field.py index 6995867c051..b0aa9811029 100644 --- a/readthedocs/projects/migrations/0043_add-build-field.py +++ b/readthedocs/projects/migrations/0043_add-build-field.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0042_increase_env_variable_value_max_length"), ] diff --git a/readthedocs/projects/migrations/0044_auto_20190703_1300.py b/readthedocs/projects/migrations/0044_auto_20190703_1300.py index 3f7312e5bc8..36054f506fa 100644 --- a/readthedocs/projects/migrations/0044_auto_20190703_1300.py +++ b/readthedocs/projects/migrations/0044_auto_20190703_1300.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0043_add-build-field"), ] diff --git a/readthedocs/projects/migrations/0045_project_max_concurrent_builds.py b/readthedocs/projects/migrations/0045_project_max_concurrent_builds.py index 7b78b59556a..a0ab5c30303 100644 --- a/readthedocs/projects/migrations/0045_project_max_concurrent_builds.py +++ b/readthedocs/projects/migrations/0045_project_max_concurrent_builds.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0044_auto_20190703_1300"), ] diff --git a/readthedocs/projects/migrations/0046_domain_hsts_fields.py b/readthedocs/projects/migrations/0046_domain_hsts_fields.py index b76ff57f20e..68b7303df96 100644 --- a/readthedocs/projects/migrations/0046_domain_hsts_fields.py +++ b/readthedocs/projects/migrations/0046_domain_hsts_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0045_project_max_concurrent_builds"), ] diff --git a/readthedocs/projects/migrations/0047_webhook_url_set_blank_default.py b/readthedocs/projects/migrations/0047_webhook_url_set_blank_default.py index 3b9db566335..6b5f39d025b 100644 --- a/readthedocs/projects/migrations/0047_webhook_url_set_blank_default.py +++ b/readthedocs/projects/migrations/0047_webhook_url_set_blank_default.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0046_domain_hsts_fields"), ] diff --git a/readthedocs/projects/migrations/0048_remove_version_privacy_field.py b/readthedocs/projects/migrations/0048_remove_version_privacy_field.py index 2d1fe1f7b25..341c4ee2198 100644 --- a/readthedocs/projects/migrations/0048_remove_version_privacy_field.py +++ b/readthedocs/projects/migrations/0048_remove_version_privacy_field.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0047_webhook_url_set_blank_default"), ] diff --git a/readthedocs/projects/migrations/0049_add_external_build_enabled.py b/readthedocs/projects/migrations/0049_add_external_build_enabled.py index a1a92b5c889..5e398ee0a9a 100644 --- a/readthedocs/projects/migrations/0049_add_external_build_enabled.py +++ b/readthedocs/projects/migrations/0049_add_external_build_enabled.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0048_remove_version_privacy_field"), ] diff --git a/readthedocs/projects/migrations/0050_migrate_external_builds.py b/readthedocs/projects/migrations/0050_migrate_external_builds.py index 5484d1f5e38..9abe7c5b65a 100644 --- a/readthedocs/projects/migrations/0050_migrate_external_builds.py +++ b/readthedocs/projects/migrations/0050_migrate_external_builds.py @@ -13,7 +13,7 @@ def migrate_features(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0049_add_external_build_enabled"), ] diff --git a/readthedocs/projects/migrations/0051_project_urlconf_feature.py b/readthedocs/projects/migrations/0051_project_urlconf_feature.py index 5b497a4a89d..baaf96c6a80 100644 --- a/readthedocs/projects/migrations/0051_project_urlconf_feature.py +++ b/readthedocs/projects/migrations/0051_project_urlconf_feature.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0050_migrate_external_builds"), ] diff --git a/readthedocs/projects/migrations/0052_migrate_null_external_builds_field.py b/readthedocs/projects/migrations/0052_migrate_null_external_builds_field.py index 19db4afabd2..2c5e81938ac 100644 --- a/readthedocs/projects/migrations/0052_migrate_null_external_builds_field.py +++ b/readthedocs/projects/migrations/0052_migrate_null_external_builds_field.py @@ -10,7 +10,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0051_project_urlconf_feature"), ] diff --git a/readthedocs/projects/migrations/0053_make_external_builds_field_not_null.py b/readthedocs/projects/migrations/0053_make_external_builds_field_not_null.py index a84c7eca124..d398fdbb021 100644 --- a/readthedocs/projects/migrations/0053_make_external_builds_field_not_null.py +++ b/readthedocs/projects/migrations/0053_make_external_builds_field_not_null.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0052_migrate_null_external_builds_field"), ] diff --git a/readthedocs/projects/migrations/0054_urlconf_blank.py b/readthedocs/projects/migrations/0054_urlconf_blank.py index 06e1fd83e08..33c79d9bbe8 100644 --- a/readthedocs/projects/migrations/0054_urlconf_blank.py +++ b/readthedocs/projects/migrations/0054_urlconf_blank.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0053_make_external_builds_field_not_null"), ] diff --git a/readthedocs/projects/migrations/0055_change_help_text_description.py b/readthedocs/projects/migrations/0055_change_help_text_description.py index afc8210806f..3aaa790e00a 100644 --- a/readthedocs/projects/migrations/0055_change_help_text_description.py +++ b/readthedocs/projects/migrations/0055_change_help_text_description.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0054_urlconf_blank"), ] diff --git a/readthedocs/projects/migrations/0056_add_disable_analytics.py b/readthedocs/projects/migrations/0056_add_disable_analytics.py index 119f01770f2..bf4e2858ec0 100644 --- a/readthedocs/projects/migrations/0056_add_disable_analytics.py +++ b/readthedocs/projects/migrations/0056_add_disable_analytics.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0055_change_help_text_description"), ] diff --git a/readthedocs/projects/migrations/0057_add_page_rank.py b/readthedocs/projects/migrations/0057_add_page_rank.py index b0dbc880317..a50799d964a 100644 --- a/readthedocs/projects/migrations/0057_add_page_rank.py +++ b/readthedocs/projects/migrations/0057_add_page_rank.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0056_add_disable_analytics"), ] diff --git a/readthedocs/projects/migrations/0058_update_timestamp_fields.py b/readthedocs/projects/migrations/0058_update_timestamp_fields.py index 0e4864f864d..619d4acca2f 100644 --- a/readthedocs/projects/migrations/0058_update_timestamp_fields.py +++ b/readthedocs/projects/migrations/0058_update_timestamp_fields.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0057_add_page_rank"), ] diff --git a/readthedocs/projects/migrations/0059_migrate_null_rank.py b/readthedocs/projects/migrations/0059_migrate_null_rank.py index 5a61799147c..c19a3c17223 100644 --- a/readthedocs/projects/migrations/0059_migrate_null_rank.py +++ b/readthedocs/projects/migrations/0059_migrate_null_rank.py @@ -10,7 +10,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0058_update_timestamp_fields"), ] diff --git a/readthedocs/projects/migrations/0060_make_rank_not_null.py b/readthedocs/projects/migrations/0060_make_rank_not_null.py index 5a6b1e83cda..0648738f9a6 100644 --- a/readthedocs/projects/migrations/0060_make_rank_not_null.py +++ b/readthedocs/projects/migrations/0060_make_rank_not_null.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0059_migrate_null_rank"), ] diff --git a/readthedocs/projects/migrations/0061_add_imported_file_ignore.py b/readthedocs/projects/migrations/0061_add_imported_file_ignore.py index 24e72297bc6..3d643f8524a 100644 --- a/readthedocs/projects/migrations/0061_add_imported_file_ignore.py +++ b/readthedocs/projects/migrations/0061_add_imported_file_ignore.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0060_make_rank_not_null"), ] diff --git a/readthedocs/projects/migrations/0062_add_ssl_status.py b/readthedocs/projects/migrations/0062_add_ssl_status.py index 846ce473ca6..6ea9d91a262 100644 --- a/readthedocs/projects/migrations/0062_add_ssl_status.py +++ b/readthedocs/projects/migrations/0062_add_ssl_status.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0061_add_imported_file_ignore"), ] diff --git a/readthedocs/projects/migrations/0063_extend_domain_from_timestamp_model.py b/readthedocs/projects/migrations/0063_extend_domain_from_timestamp_model.py index 66d2eb04dcf..17a6198ec77 100644 --- a/readthedocs/projects/migrations/0063_extend_domain_from_timestamp_model.py +++ b/readthedocs/projects/migrations/0063_extend_domain_from_timestamp_model.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0062_add_ssl_status"), ] diff --git a/readthedocs/projects/migrations/0064_add_feature_future_default_true.py b/readthedocs/projects/migrations/0064_add_feature_future_default_true.py index 9f1b81b6842..aea7d056afa 100644 --- a/readthedocs/projects/migrations/0064_add_feature_future_default_true.py +++ b/readthedocs/projects/migrations/0064_add_feature_future_default_true.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0063_extend_domain_from_timestamp_model"), ] diff --git a/readthedocs/projects/migrations/0065_add_feature_future_default_true.py b/readthedocs/projects/migrations/0065_add_feature_future_default_true.py index 9824c45e216..e3996af09f3 100644 --- a/readthedocs/projects/migrations/0065_add_feature_future_default_true.py +++ b/readthedocs/projects/migrations/0065_add_feature_future_default_true.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0064_add_feature_future_default_true"), ] diff --git a/readthedocs/projects/migrations/0066_make_imported_file_slug_nullable.py b/readthedocs/projects/migrations/0066_make_imported_file_slug_nullable.py index 33c7b58cfed..ce390a5670a 100644 --- a/readthedocs/projects/migrations/0066_make_imported_file_slug_nullable.py +++ b/readthedocs/projects/migrations/0066_make_imported_file_slug_nullable.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0065_add_feature_future_default_true"), ] diff --git a/readthedocs/projects/migrations/0067_change_max_length_feature_id.py b/readthedocs/projects/migrations/0067_change_max_length_feature_id.py index 945dfaf453e..efc7b63af81 100644 --- a/readthedocs/projects/migrations/0067_change_max_length_feature_id.py +++ b/readthedocs/projects/migrations/0067_change_max_length_feature_id.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0066_make_imported_file_slug_nullable"), ] diff --git a/readthedocs/projects/migrations/0068_remove_slug_field.py b/readthedocs/projects/migrations/0068_remove_slug_field.py index 72f0f9ecffd..ac9898266ab 100644 --- a/readthedocs/projects/migrations/0068_remove_slug_field.py +++ b/readthedocs/projects/migrations/0068_remove_slug_field.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0067_change_max_length_feature_id"), ] diff --git a/readthedocs/projects/migrations/0069_migrate_protected_projects.py b/readthedocs/projects/migrations/0069_migrate_protected_projects.py index 8e5d18863bb..8b321164993 100644 --- a/readthedocs/projects/migrations/0069_migrate_protected_projects.py +++ b/readthedocs/projects/migrations/0069_migrate_protected_projects.py @@ -10,7 +10,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0068_remove_slug_field"), ] diff --git a/readthedocs/projects/migrations/0070_make_md5_field_nullable.py b/readthedocs/projects/migrations/0070_make_md5_field_nullable.py index 288822e752e..7a6cbfc42c8 100644 --- a/readthedocs/projects/migrations/0070_make_md5_field_nullable.py +++ b/readthedocs/projects/migrations/0070_make_md5_field_nullable.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0069_migrate_protected_projects"), ] diff --git a/readthedocs/projects/migrations/0071_add_env_var_privacy.py b/readthedocs/projects/migrations/0071_add_env_var_privacy.py index 781165c1d86..8529c5a8787 100644 --- a/readthedocs/projects/migrations/0071_add_env_var_privacy.py +++ b/readthedocs/projects/migrations/0071_add_env_var_privacy.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0070_make_md5_field_nullable"), ] diff --git a/readthedocs/projects/migrations/0072_remove_md5_field.py b/readthedocs/projects/migrations/0072_remove_md5_field.py index 6f38fc86b3b..d7431fd06fc 100644 --- a/readthedocs/projects/migrations/0072_remove_md5_field.py +++ b/readthedocs/projects/migrations/0072_remove_md5_field.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0071_add_env_var_privacy"), ] diff --git a/readthedocs/projects/migrations/0073_remove_protected_privacy_level.py b/readthedocs/projects/migrations/0073_remove_protected_privacy_level.py index 650f1b98eb0..6b02d677d4d 100644 --- a/readthedocs/projects/migrations/0073_remove_protected_privacy_level.py +++ b/readthedocs/projects/migrations/0073_remove_protected_privacy_level.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0072_remove_md5_field"), ] diff --git a/readthedocs/projects/migrations/0074_backport_indexes.py b/readthedocs/projects/migrations/0074_backport_indexes.py index 69fc6d25f94..67c8b5146ee 100644 --- a/readthedocs/projects/migrations/0074_backport_indexes.py +++ b/readthedocs/projects/migrations/0074_backport_indexes.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0073_remove_protected_privacy_level"), ] diff --git a/readthedocs/projects/migrations/0075_change_mkdocs_name.py b/readthedocs/projects/migrations/0075_change_mkdocs_name.py index 84bd16660a0..f56c7ca3677 100644 --- a/readthedocs/projects/migrations/0075_change_mkdocs_name.py +++ b/readthedocs/projects/migrations/0075_change_mkdocs_name.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0074_backport_indexes"), ] diff --git a/readthedocs/projects/migrations/0076_project_remote_repository.py b/readthedocs/projects/migrations/0076_project_remote_repository.py index 5c5891080b6..a8e2bc87d1d 100644 --- a/readthedocs/projects/migrations/0076_project_remote_repository.py +++ b/readthedocs/projects/migrations/0076_project_remote_repository.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0013_create_new_table_for_remote_repository_normalization"), ("projects", "0075_change_mkdocs_name"), diff --git a/readthedocs/projects/migrations/0077_remote_repository_data_migration.py b/readthedocs/projects/migrations/0077_remote_repository_data_migration.py index d3c2e95547a..dac3ec4ddff 100644 --- a/readthedocs/projects/migrations/0077_remote_repository_data_migration.py +++ b/readthedocs/projects/migrations/0077_remote_repository_data_migration.py @@ -16,7 +16,7 @@ def migrate_data(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0076_project_remote_repository"), ] diff --git a/readthedocs/projects/migrations/0078_add_external_builds_privacy_level_field.py b/readthedocs/projects/migrations/0078_add_external_builds_privacy_level_field.py index 7106c762ea5..77b41b027a6 100644 --- a/readthedocs/projects/migrations/0078_add_external_builds_privacy_level_field.py +++ b/readthedocs/projects/migrations/0078_add_external_builds_privacy_level_field.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0077_remote_repository_data_migration"), ] diff --git a/readthedocs/projects/migrations/0079_httpheader.py b/readthedocs/projects/migrations/0079_httpheader.py index 1b73d9d286b..b17ed379bb0 100644 --- a/readthedocs/projects/migrations/0079_httpheader.py +++ b/readthedocs/projects/migrations/0079_httpheader.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0078_add_external_builds_privacy_level_field"), ] diff --git a/readthedocs/projects/migrations/0080_historicalproject.py b/readthedocs/projects/migrations/0080_historicalproject.py index 51a9a2b0383..c9f6395ad88 100644 --- a/readthedocs/projects/migrations/0080_historicalproject.py +++ b/readthedocs/projects/migrations/0080_historicalproject.py @@ -12,7 +12,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("oauth", "0014_remove_remoterepository_project"), migrations.swappable_dependency(settings.AUTH_USER_MODEL), diff --git a/readthedocs/projects/migrations/0081_add_another_header.py b/readthedocs/projects/migrations/0081_add_another_header.py index daeb0fac010..ae612ffad60 100644 --- a/readthedocs/projects/migrations/0081_add_another_header.py +++ b/readthedocs/projects/migrations/0081_add_another_header.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0080_historicalproject"), ] diff --git a/readthedocs/projects/migrations/0082_add_extra_history_fields.py b/readthedocs/projects/migrations/0082_add_extra_history_fields.py index 8c028dd16ef..325b45f6fb3 100644 --- a/readthedocs/projects/migrations/0082_add_extra_history_fields.py +++ b/readthedocs/projects/migrations/0082_add_extra_history_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0081_add_another_header"), ] diff --git a/readthedocs/projects/migrations/0083_init_generic_webhooks.py b/readthedocs/projects/migrations/0083_init_generic_webhooks.py index b9f3e71799a..3c126d78396 100644 --- a/readthedocs/projects/migrations/0083_init_generic_webhooks.py +++ b/readthedocs/projects/migrations/0083_init_generic_webhooks.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0082_add_extra_history_fields"), ] diff --git a/readthedocs/projects/migrations/0084_create_webhook_events.py b/readthedocs/projects/migrations/0084_create_webhook_events.py index ca219d5575d..2a1443f0c02 100644 --- a/readthedocs/projects/migrations/0084_create_webhook_events.py +++ b/readthedocs/projects/migrations/0084_create_webhook_events.py @@ -11,7 +11,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0083_init_generic_webhooks"), ] diff --git a/readthedocs/projects/migrations/0085_subscribe_old_webhooks_to_events.py b/readthedocs/projects/migrations/0085_subscribe_old_webhooks_to_events.py index b5478041a41..6075057c5d5 100644 --- a/readthedocs/projects/migrations/0085_subscribe_old_webhooks_to_events.py +++ b/readthedocs/projects/migrations/0085_subscribe_old_webhooks_to_events.py @@ -19,7 +19,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0084_create_webhook_events"), ] diff --git a/readthedocs/projects/migrations/0086_is_spam.py b/readthedocs/projects/migrations/0086_is_spam.py index c1875b8bcea..11dea0e6537 100644 --- a/readthedocs/projects/migrations/0086_is_spam.py +++ b/readthedocs/projects/migrations/0086_is_spam.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0085_subscribe_old_webhooks_to_events"), ] diff --git a/readthedocs/projects/migrations/0087_use_booleanfield_null.py b/readthedocs/projects/migrations/0087_use_booleanfield_null.py index 2c68f4e4004..45c7f7c1d6d 100644 --- a/readthedocs/projects/migrations/0087_use_booleanfield_null.py +++ b/readthedocs/projects/migrations/0087_use_booleanfield_null.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0086_is_spam"), ] diff --git a/readthedocs/projects/migrations/0088_domain_field_edits.py b/readthedocs/projects/migrations/0088_domain_field_edits.py index 0b1accbbb25..e45ec647200 100644 --- a/readthedocs/projects/migrations/0088_domain_field_edits.py +++ b/readthedocs/projects/migrations/0088_domain_field_edits.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0087_use_booleanfield_null"), ] diff --git a/readthedocs/projects/migrations/0089_update_help_text.py b/readthedocs/projects/migrations/0089_update_help_text.py index 77f375cc647..4600c4df345 100644 --- a/readthedocs/projects/migrations/0089_update_help_text.py +++ b/readthedocs/projects/migrations/0089_update_help_text.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0088_domain_field_edits"), ] diff --git a/readthedocs/projects/migrations/0090_dont_allow_ips_on_domains.py b/readthedocs/projects/migrations/0090_dont_allow_ips_on_domains.py index eeb2c84153a..aed417e2bd5 100644 --- a/readthedocs/projects/migrations/0090_dont_allow_ips_on_domains.py +++ b/readthedocs/projects/migrations/0090_dont_allow_ips_on_domains.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0089_update_help_text"), ] diff --git a/readthedocs/projects/migrations/0091_upate_meta_options.py b/readthedocs/projects/migrations/0091_upate_meta_options.py index f2581ac8c9c..552c40b9752 100644 --- a/readthedocs/projects/migrations/0091_upate_meta_options.py +++ b/readthedocs/projects/migrations/0091_upate_meta_options.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0090_dont_allow_ips_on_domains"), ] diff --git a/readthedocs/projects/migrations/0092_add_new_fields.py b/readthedocs/projects/migrations/0092_add_new_fields.py index ee3186e20f5..1957b22861d 100644 --- a/readthedocs/projects/migrations/0092_add_new_fields.py +++ b/readthedocs/projects/migrations/0092_add_new_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0091_upate_meta_options"), ] diff --git a/readthedocs/projects/migrations/0093_migrate_null_fields.py b/readthedocs/projects/migrations/0093_migrate_null_fields.py index 964f49bdd5d..f527afc0746 100644 --- a/readthedocs/projects/migrations/0093_migrate_null_fields.py +++ b/readthedocs/projects/migrations/0093_migrate_null_fields.py @@ -14,7 +14,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0092_add_new_fields"), ] diff --git a/readthedocs/projects/migrations/0094_auto_20221221_1045.py b/readthedocs/projects/migrations/0094_auto_20221221_1045.py index dcc187034d2..90e5b219466 100644 --- a/readthedocs/projects/migrations/0094_auto_20221221_1045.py +++ b/readthedocs/projects/migrations/0094_auto_20221221_1045.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0093_migrate_null_fields"), ] diff --git a/readthedocs/projects/migrations/0095_default_branch_helptext.py b/readthedocs/projects/migrations/0095_default_branch_helptext.py index fba5efe4f06..06f50a86000 100644 --- a/readthedocs/projects/migrations/0095_default_branch_helptext.py +++ b/readthedocs/projects/migrations/0095_default_branch_helptext.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0094_auto_20221221_1045"), ] diff --git a/readthedocs/projects/migrations/0096_add_project_delisted.py b/readthedocs/projects/migrations/0096_add_project_delisted.py index e1c3d471f41..3d854c2cba1 100644 --- a/readthedocs/projects/migrations/0096_add_project_delisted.py +++ b/readthedocs/projects/migrations/0096_add_project_delisted.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0095_default_branch_helptext"), ] diff --git a/readthedocs/projects/migrations/0097_add_http_header.py b/readthedocs/projects/migrations/0097_add_http_header.py index bf3b806f1ff..3028e3b08e0 100644 --- a/readthedocs/projects/migrations/0097_add_http_header.py +++ b/readthedocs/projects/migrations/0097_add_http_header.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0096_add_project_delisted"), ] diff --git a/readthedocs/projects/migrations/0098_pdf_epub_opt_in.py b/readthedocs/projects/migrations/0098_pdf_epub_opt_in.py index 3b6e765d3da..dfe241c4be5 100644 --- a/readthedocs/projects/migrations/0098_pdf_epub_opt_in.py +++ b/readthedocs/projects/migrations/0098_pdf_epub_opt_in.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0097_add_http_header"), ] diff --git a/readthedocs/projects/migrations/0099_alter_domain_https.py b/readthedocs/projects/migrations/0099_alter_domain_https.py index 622950d3123..2339912fb56 100644 --- a/readthedocs/projects/migrations/0099_alter_domain_https.py +++ b/readthedocs/projects/migrations/0099_alter_domain_https.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0098_pdf_epub_opt_in"), ] diff --git a/readthedocs/projects/migrations/0100_project_readthedocs_yaml_path.py b/readthedocs/projects/migrations/0100_project_readthedocs_yaml_path.py index a689d7da734..c251e908b8f 100644 --- a/readthedocs/projects/migrations/0100_project_readthedocs_yaml_path.py +++ b/readthedocs/projects/migrations/0100_project_readthedocs_yaml_path.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0099_alter_domain_https"), ] diff --git a/readthedocs/projects/migrations/0101_add_path_prefixes.py b/readthedocs/projects/migrations/0101_add_path_prefixes.py index 4e9c891a588..de6cc4e0a68 100644 --- a/readthedocs/projects/migrations/0101_add_path_prefixes.py +++ b/readthedocs/projects/migrations/0101_add_path_prefixes.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0100_project_readthedocs_yaml_path"), ] diff --git a/readthedocs/projects/migrations/0102_allow_version_warning_banner.py b/readthedocs/projects/migrations/0102_allow_version_warning_banner.py index a0294f8a31e..a34d76ee83d 100644 --- a/readthedocs/projects/migrations/0102_allow_version_warning_banner.py +++ b/readthedocs/projects/migrations/0102_allow_version_warning_banner.py @@ -14,7 +14,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0101_add_path_prefixes"), ] diff --git a/readthedocs/projects/migrations/0103_alter_emailhook_project_alter_webhook_project.py b/readthedocs/projects/migrations/0103_alter_emailhook_project_alter_webhook_project.py index c204710cf35..397cf23ffb1 100644 --- a/readthedocs/projects/migrations/0103_alter_emailhook_project_alter_webhook_project.py +++ b/readthedocs/projects/migrations/0103_alter_emailhook_project_alter_webhook_project.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0102_allow_version_warning_banner"), ] diff --git a/readthedocs/projects/migrations/0104_alter_httpheader_value.py b/readthedocs/projects/migrations/0104_alter_httpheader_value.py index dc76a6c0ec3..8f7c1ccfdbd 100644 --- a/readthedocs/projects/migrations/0104_alter_httpheader_value.py +++ b/readthedocs/projects/migrations/0104_alter_httpheader_value.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0103_alter_emailhook_project_alter_webhook_project"), ] diff --git a/readthedocs/projects/migrations/0105_remove_project_urlconf.py b/readthedocs/projects/migrations/0105_remove_project_urlconf.py index 8cd37021479..9772b0e7d8d 100644 --- a/readthedocs/projects/migrations/0105_remove_project_urlconf.py +++ b/readthedocs/projects/migrations/0105_remove_project_urlconf.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0104_alter_httpheader_value"), ] diff --git a/readthedocs/projects/migrations/0106_add_addons_config.py b/readthedocs/projects/migrations/0106_add_addons_config.py index a7f782e66d6..b38b359cecf 100644 --- a/readthedocs/projects/migrations/0106_add_addons_config.py +++ b/readthedocs/projects/migrations/0106_add_addons_config.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0105_remove_project_urlconf"), ] diff --git a/readthedocs/projects/migrations/0107_alter_project_language.py b/readthedocs/projects/migrations/0107_alter_project_language.py index 0e4e7f13003..74575936811 100644 --- a/readthedocs/projects/migrations/0107_alter_project_language.py +++ b/readthedocs/projects/migrations/0107_alter_project_language.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0106_add_addons_config"), ] diff --git a/readthedocs/projects/migrations/0108_migrate_language_code.py b/readthedocs/projects/migrations/0108_migrate_language_code.py index a8d7a5c12ae..234164683c4 100644 --- a/readthedocs/projects/migrations/0108_migrate_language_code.py +++ b/readthedocs/projects/migrations/0108_migrate_language_code.py @@ -20,7 +20,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0107_alter_project_language"), ] diff --git a/readthedocs/projects/migrations/0109_add_project_versioning_scheme.py b/readthedocs/projects/migrations/0109_add_project_versioning_scheme.py index 7d4c939697e..580c8ce084d 100644 --- a/readthedocs/projects/migrations/0109_add_project_versioning_scheme.py +++ b/readthedocs/projects/migrations/0109_add_project_versioning_scheme.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0108_migrate_language_code"), ] diff --git a/readthedocs/projects/migrations/0110_migrate_versioning_scheme.py b/readthedocs/projects/migrations/0110_migrate_versioning_scheme.py index ef2f04c52cc..ac15bd6d313 100644 --- a/readthedocs/projects/migrations/0110_migrate_versioning_scheme.py +++ b/readthedocs/projects/migrations/0110_migrate_versioning_scheme.py @@ -18,7 +18,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0109_add_project_versioning_scheme"), ] diff --git a/readthedocs/projects/migrations/0111_add_multiple_versions_without_translations.py b/readthedocs/projects/migrations/0111_add_multiple_versions_without_translations.py index 914eef983c1..84fef411706 100644 --- a/readthedocs/projects/migrations/0111_add_multiple_versions_without_translations.py +++ b/readthedocs/projects/migrations/0111_add_multiple_versions_without_translations.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0110_migrate_versioning_scheme"), ] diff --git a/readthedocs/projects/migrations/0112_alter_project_help_text.py b/readthedocs/projects/migrations/0112_alter_project_help_text.py index a06f40542a6..81c239c23b5 100644 --- a/readthedocs/projects/migrations/0112_alter_project_help_text.py +++ b/readthedocs/projects/migrations/0112_alter_project_help_text.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0111_add_multiple_versions_without_translations"), ] diff --git a/readthedocs/projects/migrations/0113_disable_analytics_addons.py b/readthedocs/projects/migrations/0113_disable_analytics_addons.py index 1e1b5db9759..c9b47771b3d 100644 --- a/readthedocs/projects/migrations/0113_disable_analytics_addons.py +++ b/readthedocs/projects/migrations/0113_disable_analytics_addons.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0112_alter_project_help_text"), ] diff --git a/readthedocs/projects/migrations/0114_set_timestamp_fields_as_no_null.py b/readthedocs/projects/migrations/0114_set_timestamp_fields_as_no_null.py index 94d235a5e1a..960a9dba3a9 100644 --- a/readthedocs/projects/migrations/0114_set_timestamp_fields_as_no_null.py +++ b/readthedocs/projects/migrations/0114_set_timestamp_fields_as_no_null.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("projects", "0113_disable_analytics_addons"), diff --git a/readthedocs/projects/migrations/0115_add_addonsconfig_history.py b/readthedocs/projects/migrations/0115_add_addonsconfig_history.py index 7c85f3e824d..3aacd5dd585 100644 --- a/readthedocs/projects/migrations/0115_add_addonsconfig_history.py +++ b/readthedocs/projects/migrations/0115_add_addonsconfig_history.py @@ -10,7 +10,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), diff --git a/readthedocs/projects/migrations/0116_mark_fields_as_null.py b/readthedocs/projects/migrations/0116_mark_fields_as_null.py index 30246698148..52a4dc599a8 100644 --- a/readthedocs/projects/migrations/0116_mark_fields_as_null.py +++ b/readthedocs/projects/migrations/0116_mark_fields_as_null.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0115_add_addonsconfig_history"), diff --git a/readthedocs/projects/migrations/0117_remove_old_fields.py b/readthedocs/projects/migrations/0117_remove_old_fields.py index 3fb69bfc6fd..2b9219616e9 100644 --- a/readthedocs/projects/migrations/0117_remove_old_fields.py +++ b/readthedocs/projects/migrations/0117_remove_old_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0116_mark_fields_as_null"), diff --git a/readthedocs/projects/migrations/0118_addons_flyout_sorting.py b/readthedocs/projects/migrations/0118_addons_flyout_sorting.py index b1e23edd25a..caa64335786 100644 --- a/readthedocs/projects/migrations/0118_addons_flyout_sorting.py +++ b/readthedocs/projects/migrations/0118_addons_flyout_sorting.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0117_remove_old_fields"), diff --git a/readthedocs/projects/migrations/0119_alter_addonsconfig_flyout_sorting_custom_pattern_and_more.py b/readthedocs/projects/migrations/0119_alter_addonsconfig_flyout_sorting_custom_pattern_and_more.py index fba905e0498..9aaa87d45b9 100644 --- a/readthedocs/projects/migrations/0119_alter_addonsconfig_flyout_sorting_custom_pattern_and_more.py +++ b/readthedocs/projects/migrations/0119_alter_addonsconfig_flyout_sorting_custom_pattern_and_more.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0118_addons_flyout_sorting"), diff --git a/readthedocs/projects/migrations/0120_docdiff_helptext.py b/readthedocs/projects/migrations/0120_docdiff_helptext.py index 89eb212c883..938134018c5 100644 --- a/readthedocs/projects/migrations/0120_docdiff_helptext.py +++ b/readthedocs/projects/migrations/0120_docdiff_helptext.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0119_alter_addonsconfig_flyout_sorting_custom_pattern_and_more"), ] diff --git a/readthedocs/projects/migrations/0121_remove_requirements_file.py b/readthedocs/projects/migrations/0121_remove_requirements_file.py index 71897f512b7..1bac9370285 100644 --- a/readthedocs/projects/migrations/0121_remove_requirements_file.py +++ b/readthedocs/projects/migrations/0121_remove_requirements_file.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0120_docdiff_helptext"), diff --git a/readthedocs/projects/migrations/0122_add_httpheader_option.py b/readthedocs/projects/migrations/0122_add_httpheader_option.py index 71a3f5fc9de..02f4550f4c8 100644 --- a/readthedocs/projects/migrations/0122_add_httpheader_option.py +++ b/readthedocs/projects/migrations/0122_add_httpheader_option.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0121_remove_requirements_file"), ] diff --git a/readthedocs/projects/migrations/0123_deprecate_old_vcs.py b/readthedocs/projects/migrations/0123_deprecate_old_vcs.py index c450292018b..6fcbab12377 100644 --- a/readthedocs/projects/migrations/0123_deprecate_old_vcs.py +++ b/readthedocs/projects/migrations/0123_deprecate_old_vcs.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0122_add_httpheader_option"), ] diff --git a/readthedocs/projects/migrations/0124_remove_zh_locale.py b/readthedocs/projects/migrations/0124_remove_zh_locale.py index 725fd704eb9..2890acf3655 100644 --- a/readthedocs/projects/migrations/0124_remove_zh_locale.py +++ b/readthedocs/projects/migrations/0124_remove_zh_locale.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0123_deprecate_old_vcs"), diff --git a/readthedocs/projects/migrations/0125_update_naming.py b/readthedocs/projects/migrations/0125_update_naming.py index c82046711bd..f0cbf531b82 100644 --- a/readthedocs/projects/migrations/0125_update_naming.py +++ b/readthedocs/projects/migrations/0125_update_naming.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0124_remove_zh_locale"), ] diff --git a/readthedocs/projects/migrations/0126_alter_remote_repository_description.py b/readthedocs/projects/migrations/0126_alter_remote_repository_description.py index e52028394ff..d833ca6082b 100644 --- a/readthedocs/projects/migrations/0126_alter_remote_repository_description.py +++ b/readthedocs/projects/migrations/0126_alter_remote_repository_description.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("oauth", "0016_deprecate_old_vcs"), ("projects", "0125_update_naming"), diff --git a/readthedocs/projects/migrations/0127_default_to_semver.py b/readthedocs/projects/migrations/0127_default_to_semver.py index 53efb347756..bd17d22ed0e 100644 --- a/readthedocs/projects/migrations/0127_default_to_semver.py +++ b/readthedocs/projects/migrations/0127_default_to_semver.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("projects", "0126_alter_remote_repository_description"), ] diff --git a/readthedocs/projects/migrations/0128_addons_notifications.py b/readthedocs/projects/migrations/0128_addons_notifications.py index 95adb348434..30f3b2b9841 100644 --- a/readthedocs/projects/migrations/0128_addons_notifications.py +++ b/readthedocs/projects/migrations/0128_addons_notifications.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0127_default_to_semver"), diff --git a/readthedocs/projects/migrations/0129_addons_notification_data_migration.py b/readthedocs/projects/migrations/0129_addons_notification_data_migration.py index 9498757cbff..a125dfcaf0e 100644 --- a/readthedocs/projects/migrations/0129_addons_notification_data_migration.py +++ b/readthedocs/projects/migrations/0129_addons_notification_data_migration.py @@ -23,7 +23,7 @@ def reverse_remove_fields(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0128_addons_notifications"), diff --git a/readthedocs/projects/migrations/0130_addons_remove_old_fields.py b/readthedocs/projects/migrations/0130_addons_remove_old_fields.py index 80c16bd5494..ddd7b9836ac 100644 --- a/readthedocs/projects/migrations/0130_addons_remove_old_fields.py +++ b/readthedocs/projects/migrations/0130_addons_remove_old_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0129_addons_notification_data_migration"), diff --git a/readthedocs/projects/migrations/0131_increase_env_var_size.py b/readthedocs/projects/migrations/0131_increase_env_var_size.py index 43ae51ea749..b2012fcd502 100644 --- a/readthedocs/projects/migrations/0131_increase_env_var_size.py +++ b/readthedocs/projects/migrations/0131_increase_env_var_size.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0130_addons_remove_old_fields"), diff --git a/readthedocs/projects/migrations/0132_addons_linkpreviews_fields.py b/readthedocs/projects/migrations/0132_addons_linkpreviews_fields.py index b506e32afc0..7a7e97c75a0 100644 --- a/readthedocs/projects/migrations/0132_addons_linkpreviews_fields.py +++ b/readthedocs/projects/migrations/0132_addons_linkpreviews_fields.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0131_increase_env_var_size"), diff --git a/readthedocs/projects/migrations/0133_addons_load_when_embedded.py b/readthedocs/projects/migrations/0133_addons_load_when_embedded.py index ef29e3a4b5c..80c10a4ff44 100644 --- a/readthedocs/projects/migrations/0133_addons_load_when_embedded.py +++ b/readthedocs/projects/migrations/0133_addons_load_when_embedded.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0132_addons_linkpreviews_fields"), diff --git a/readthedocs/projects/migrations/0134_addons_customscript.py b/readthedocs/projects/migrations/0134_addons_customscript.py index 68bfe42ad43..1149b0e5c2c 100644 --- a/readthedocs/projects/migrations/0134_addons_customscript.py +++ b/readthedocs/projects/migrations/0134_addons_customscript.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0133_addons_load_when_embedded"), diff --git a/readthedocs/projects/migrations/0135_addons_load_when_embedded_notnull.py b/readthedocs/projects/migrations/0135_addons_load_when_embedded_notnull.py index 1aef9bbb7e2..52163bbb727 100644 --- a/readthedocs/projects/migrations/0135_addons_load_when_embedded_notnull.py +++ b/readthedocs/projects/migrations/0135_addons_load_when_embedded_notnull.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0134_addons_customscript"), diff --git a/readthedocs/projects/migrations/0136_addons_customscript_notnull.py b/readthedocs/projects/migrations/0136_addons_customscript_notnull.py index 4a4d3dcc34d..453322adfc0 100644 --- a/readthedocs/projects/migrations/0136_addons_customscript_notnull.py +++ b/readthedocs/projects/migrations/0136_addons_customscript_notnull.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0135_addons_load_when_embedded_notnull"), diff --git a/readthedocs/projects/migrations/0137_use_generic_root_selector.py b/readthedocs/projects/migrations/0137_use_generic_root_selector.py index 792bd5c4621..60ddc9f1529 100644 --- a/readthedocs/projects/migrations/0137_use_generic_root_selector.py +++ b/readthedocs/projects/migrations/0137_use_generic_root_selector.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0136_addons_customscript_notnull"), diff --git a/readthedocs/projects/migrations/0138_remove_old_fields.py b/readthedocs/projects/migrations/0138_remove_old_fields.py index a6fdecc0227..e3a9237bdae 100644 --- a/readthedocs/projects/migrations/0138_remove_old_fields.py +++ b/readthedocs/projects/migrations/0138_remove_old_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0137_use_generic_root_selector"), diff --git a/readthedocs/projects/migrations/0139_addons_filetreediff_field.py b/readthedocs/projects/migrations/0139_addons_filetreediff_field.py index b7424727dc6..ca6ace24efa 100644 --- a/readthedocs/projects/migrations/0139_addons_filetreediff_field.py +++ b/readthedocs/projects/migrations/0139_addons_filetreediff_field.py @@ -18,7 +18,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0138_remove_old_fields"), diff --git a/readthedocs/projects/migrations/0140_addons_options_base_version.py b/readthedocs/projects/migrations/0140_addons_options_base_version.py index c51c775d126..d9df8a82919 100644 --- a/readthedocs/projects/migrations/0140_addons_options_base_version.py +++ b/readthedocs/projects/migrations/0140_addons_options_base_version.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("builds", "0059_add_version_date_index"), diff --git a/readthedocs/projects/migrations/0141_create_addonsconfig.py b/readthedocs/projects/migrations/0141_create_addonsconfig.py index 93d6a0f8a4e..6996195f9e1 100644 --- a/readthedocs/projects/migrations/0141_create_addonsconfig.py +++ b/readthedocs/projects/migrations/0141_create_addonsconfig.py @@ -18,7 +18,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0140_addons_options_base_version"), diff --git a/readthedocs/projects/migrations/0142_update_dj_simple_history.py b/readthedocs/projects/migrations/0142_update_dj_simple_history.py index b1235c34a29..ea096eee4f7 100644 --- a/readthedocs/projects/migrations/0142_update_dj_simple_history.py +++ b/readthedocs/projects/migrations/0142_update_dj_simple_history.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0141_create_addonsconfig"), diff --git a/readthedocs/projects/migrations/0143_addons_flyout_position.py b/readthedocs/projects/migrations/0143_addons_flyout_position.py index 3815961fcff..2f72a7868a0 100644 --- a/readthedocs/projects/migrations/0143_addons_flyout_position.py +++ b/readthedocs/projects/migrations/0143_addons_flyout_position.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0142_update_dj_simple_history"), diff --git a/readthedocs/projects/migrations/0144_addons_blank_field.py b/readthedocs/projects/migrations/0144_addons_blank_field.py index adbad38d4d7..76ff0b39ab7 100644 --- a/readthedocs/projects/migrations/0144_addons_blank_field.py +++ b/readthedocs/projects/migrations/0144_addons_blank_field.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("builds", "0059_add_version_date_index"), diff --git a/readthedocs/projects/migrations/0145_alter_importedfile_id.py b/readthedocs/projects/migrations/0145_alter_importedfile_id.py index 2d7ea09fb3c..1637a14f9a9 100644 --- a/readthedocs/projects/migrations/0145_alter_importedfile_id.py +++ b/readthedocs/projects/migrations/0145_alter_importedfile_id.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0144_addons_blank_field"), diff --git a/readthedocs/projects/migrations/0146_addons_filetreediff_ignored_files.py b/readthedocs/projects/migrations/0146_addons_filetreediff_ignored_files.py index 2366226cccb..39619ff0246 100644 --- a/readthedocs/projects/migrations/0146_addons_filetreediff_ignored_files.py +++ b/readthedocs/projects/migrations/0146_addons_filetreediff_ignored_files.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0145_alter_importedfile_id"), diff --git a/readthedocs/projects/migrations/0147_addons_filetreediff_enabled_by_default.py b/readthedocs/projects/migrations/0147_addons_filetreediff_enabled_by_default.py index af57938da18..9f84d3826f2 100644 --- a/readthedocs/projects/migrations/0147_addons_filetreediff_enabled_by_default.py +++ b/readthedocs/projects/migrations/0147_addons_filetreediff_enabled_by_default.py @@ -11,7 +11,7 @@ def migrate(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0146_addons_filetreediff_ignored_files"), diff --git a/readthedocs/projects/migrations/0148_remove_unused_indexes.py b/readthedocs/projects/migrations/0148_remove_unused_indexes.py index 8980da73990..03748d8f7b4 100644 --- a/readthedocs/projects/migrations/0148_remove_unused_indexes.py +++ b/readthedocs/projects/migrations/0148_remove_unused_indexes.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("projects", "0147_addons_filetreediff_enabled_by_default"), diff --git a/readthedocs/proxito/tests/base.py b/readthedocs/proxito/tests/base.py index 8a3ab0f66e8..869a54fe994 100644 --- a/readthedocs/proxito/tests/base.py +++ b/readthedocs/proxito/tests/base.py @@ -4,7 +4,7 @@ import pytest from django.conf import settings from django.contrib.auth.models import User -from django.core.files.storage import get_storage_class +from readthedocs.storage import get_storage_class from django.test import TestCase from readthedocs.builds.constants import LATEST diff --git a/readthedocs/redirects/migrations/0001_initial.py b/readthedocs/redirects/migrations/0001_initial.py index ab65699559c..e4e39b1a707 100644 --- a/readthedocs/redirects/migrations/0001_initial.py +++ b/readthedocs/redirects/migrations/0001_initial.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("projects", "0002_add_importedfile_model"), ] diff --git a/readthedocs/redirects/migrations/0002_add_missing_model_change_migrations.py b/readthedocs/redirects/migrations/0002_add_missing_model_change_migrations.py index dff7a106526..54dfddf8025 100644 --- a/readthedocs/redirects/migrations/0002_add_missing_model_change_migrations.py +++ b/readthedocs/redirects/migrations/0002_add_missing_model_change_migrations.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("redirects", "0001_initial"), ] diff --git a/readthedocs/redirects/migrations/0003_add_default_redirect_http_status_to_302.py b/readthedocs/redirects/migrations/0003_add_default_redirect_http_status_to_302.py index 5a53af441b0..d6163ab0790 100644 --- a/readthedocs/redirects/migrations/0003_add_default_redirect_http_status_to_302.py +++ b/readthedocs/redirects/migrations/0003_add_default_redirect_http_status_to_302.py @@ -10,7 +10,7 @@ def change_http_status(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("redirects", "0002_add_missing_model_change_migrations"), ] diff --git a/readthedocs/redirects/migrations/0004_denormalize-from-url.py b/readthedocs/redirects/migrations/0004_denormalize-from-url.py index 4812cf2d898..aa676e5b4cd 100644 --- a/readthedocs/redirects/migrations/0004_denormalize-from-url.py +++ b/readthedocs/redirects/migrations/0004_denormalize-from-url.py @@ -23,7 +23,7 @@ def backward(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("redirects", "0003_add_default_redirect_http_status_to_302"), ] diff --git a/readthedocs/redirects/migrations/0005_allow_to_force_redirects.py b/readthedocs/redirects/migrations/0005_allow_to_force_redirects.py index 60cf750a698..6cc4e98ff48 100644 --- a/readthedocs/redirects/migrations/0005_allow_to_force_redirects.py +++ b/readthedocs/redirects/migrations/0005_allow_to_force_redirects.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("redirects", "0004_denormalize-from-url"), ] diff --git a/readthedocs/redirects/migrations/0006_add_new_fields.py b/readthedocs/redirects/migrations/0006_add_new_fields.py index 425a7ec07a5..16ad716c7ac 100644 --- a/readthedocs/redirects/migrations/0006_add_new_fields.py +++ b/readthedocs/redirects/migrations/0006_add_new_fields.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("redirects", "0005_allow_to_force_redirects"), ] diff --git a/readthedocs/redirects/migrations/0007_migrate_to_new_syntax.py b/readthedocs/redirects/migrations/0007_migrate_to_new_syntax.py index 3f4cc993c28..da34b617e90 100644 --- a/readthedocs/redirects/migrations/0007_migrate_to_new_syntax.py +++ b/readthedocs/redirects/migrations/0007_migrate_to_new_syntax.py @@ -32,7 +32,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("redirects", "0006_add_new_fields"), ] diff --git a/readthedocs/redirects/migrations/0008_alter_redirect_position.py b/readthedocs/redirects/migrations/0008_alter_redirect_position.py index 546ba3b6023..2148d5fafda 100644 --- a/readthedocs/redirects/migrations/0008_alter_redirect_position.py +++ b/readthedocs/redirects/migrations/0008_alter_redirect_position.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("redirects", "0007_migrate_to_new_syntax"), ] diff --git a/readthedocs/redirects/migrations/0009_remove_status_field.py b/readthedocs/redirects/migrations/0009_remove_status_field.py index 31645d59daa..1553ad95669 100644 --- a/readthedocs/redirects/migrations/0009_remove_status_field.py +++ b/readthedocs/redirects/migrations/0009_remove_status_field.py @@ -4,7 +4,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("redirects", "0008_alter_redirect_position"), ] diff --git a/readthedocs/rtd_tests/tests/test_gold.py b/readthedocs/rtd_tests/tests/test_gold.py index 5c261fba2b3..2bd4f3cf32e 100644 --- a/readthedocs/rtd_tests/tests/test_gold.py +++ b/readthedocs/rtd_tests/tests/test_gold.py @@ -40,8 +40,7 @@ def test_too_many_projects(self): reverse("gold_projects"), data={"project": self.project2.slug} ) self.assertFormError( - resp, - form="form", + resp.context.get('form'), field=None, errors="You already have the max number of supported projects.", ) diff --git a/readthedocs/rtd_tests/tests/test_imported_file.py b/readthedocs/rtd_tests/tests/test_imported_file.py index 4b0d1ded984..01d9dd0b33d 100644 --- a/readthedocs/rtd_tests/tests/test_imported_file.py +++ b/readthedocs/rtd_tests/tests/test_imported_file.py @@ -3,7 +3,7 @@ import pytest from django.conf import settings -from django.core.files.storage import get_storage_class +from readthedocs.storage import get_storage_class from django.test import TestCase from django.test.utils import override_settings from django_dynamic_fixture import get diff --git a/readthedocs/rtd_tests/tests/test_profile_views.py b/readthedocs/rtd_tests/tests/test_profile_views.py index e0abc127443..55c4bbc6690 100644 --- a/readthedocs/rtd_tests/tests/test_profile_views.py +++ b/readthedocs/rtd_tests/tests/test_profile_views.py @@ -61,20 +61,17 @@ def test_edit_profile_with_invalid_values(self): FORM_ERROR_FORMAT = "Ensure this value has at most {} characters (it has {})." self.assertFormError( - resp, - form="form", + resp.context.get('form'), field="first_name", errors=FORM_ERROR_FORMAT.format(30, 31), ) self.assertFormError( - resp, - form="form", + resp.context.get('form'), field="last_name", errors=FORM_ERROR_FORMAT.format(30, 31), ) self.assertFormError( - resp, - form="form", + resp.context.get('form'), field="homepage", errors=FORM_ERROR_FORMAT.format(100, 101), ) diff --git a/readthedocs/search/migrations/0001_initial.py b/readthedocs/search/migrations/0001_initial.py index 576ce64a07b..4f6045e61e6 100644 --- a/readthedocs/search/migrations/0001_initial.py +++ b/readthedocs/search/migrations/0001_initial.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/search/migrations/0002_add_total_results_field.py b/readthedocs/search/migrations/0002_add_total_results_field.py index 82f7c671710..ce08b24f5c8 100644 --- a/readthedocs/search/migrations/0002_add_total_results_field.py +++ b/readthedocs/search/migrations/0002_add_total_results_field.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("search", "0001_initial"), ] diff --git a/readthedocs/search/migrations/0003_migrate_total_results_null_values.py b/readthedocs/search/migrations/0003_migrate_total_results_null_values.py index 9f34c1e4807..28bd76486b1 100644 --- a/readthedocs/search/migrations/0003_migrate_total_results_null_values.py +++ b/readthedocs/search/migrations/0003_migrate_total_results_null_values.py @@ -10,7 +10,7 @@ def forwards_func(apps, schema_editor): class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("search", "0002_add_total_results_field"), ] diff --git a/readthedocs/search/migrations/0004_make_total_results_not_null.py b/readthedocs/search/migrations/0004_make_total_results_not_null.py index 5df054a071d..a3dd9f14b90 100644 --- a/readthedocs/search/migrations/0004_make_total_results_not_null.py +++ b/readthedocs/search/migrations/0004_make_total_results_not_null.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("search", "0003_migrate_total_results_null_values"), ] diff --git a/readthedocs/search/migrations/0005_alter_searchquery_id.py b/readthedocs/search/migrations/0005_alter_searchquery_id.py index 4f7c9cd9e0a..3d86ed89e2b 100644 --- a/readthedocs/search/migrations/0005_alter_searchquery_id.py +++ b/readthedocs/search/migrations/0005_alter_searchquery_id.py @@ -5,7 +5,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() dependencies = [ ("search", "0004_make_total_results_not_null"), ] diff --git a/readthedocs/search/migrations/0006_add_index_speedup.py b/readthedocs/search/migrations/0006_add_index_speedup.py index d7c9d569703..e77e646bf55 100644 --- a/readthedocs/search/migrations/0006_add_index_speedup.py +++ b/readthedocs/search/migrations/0006_add_index_speedup.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.always + safe = Safe.always() dependencies = [ ("search", "0005_alter_searchquery_id"), ] diff --git a/readthedocs/sso/migrations/0001_squashed.py b/readthedocs/sso/migrations/0001_squashed.py index a889a676286..4d38ddfc5de 100644 --- a/readthedocs/sso/migrations/0001_squashed.py +++ b/readthedocs/sso/migrations/0001_squashed.py @@ -11,7 +11,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [ diff --git a/readthedocs/sso/migrations/0002_add_saml_app.py b/readthedocs/sso/migrations/0002_add_saml_app.py index 942b5a80bbb..c93f62fbb12 100644 --- a/readthedocs/sso/migrations/0002_add_saml_app.py +++ b/readthedocs/sso/migrations/0002_add_saml_app.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("socialaccount", "0005_socialtoken_nullable_app"), ("sso", "0001_squashed"), diff --git a/readthedocs/sso/migrations/0003_allow_saml_with_old_dashboard.py b/readthedocs/sso/migrations/0003_allow_saml_with_old_dashboard.py index 293b637a881..d3a7ec0869b 100644 --- a/readthedocs/sso/migrations/0003_allow_saml_with_old_dashboard.py +++ b/readthedocs/sso/migrations/0003_allow_saml_with_old_dashboard.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.before_deploy + safe = Safe.before_deploy() dependencies = [ ("sso", "0002_add_saml_app"), ] diff --git a/readthedocs/storage/__init__.py b/readthedocs/storage/__init__.py index d1279ad4714..1f8981c7d51 100644 --- a/readthedocs/storage/__init__.py +++ b/readthedocs/storage/__init__.py @@ -7,8 +7,17 @@ """ from django.conf import settings -from django.core.files.storage import get_storage_class from django.utils.functional import LazyObject +from django.utils.module_loading import import_string + + +# Borrowed from Django 4.2 since it was deprecrated and removed in 5.2 +# NOTE: we can use settings.STORAGES for our own storages as well if we want to use the standards. +# +# https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-STORAGES) +# https://github.com/django/django/blob/4.2/django/core/files/storage/__init__.py#L31 +def get_storage_class(import_path=None): + return import_string(import_path or settings.DEFAULT_FILE_STORAGE) class ConfiguredBuildMediaStorage(LazyObject): diff --git a/readthedocs/telemetry/migrations/0001_initial.py b/readthedocs/telemetry/migrations/0001_initial.py index c5f5a56c633..8a6570e64d1 100644 --- a/readthedocs/telemetry/migrations/0001_initial.py +++ b/readthedocs/telemetry/migrations/0001_initial.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): - safe = Safe.after_deploy + safe = Safe.after_deploy() initial = True dependencies = [] diff --git a/requirements/deploy.txt b/requirements/deploy.txt index 25eaa30d28c..74316dfc8f1 100644 --- a/requirements/deploy.txt +++ b/requirements/deploy.txt @@ -24,11 +24,11 @@ billiard==4.2.1 # via # -r requirements/pip.txt # celery -boto3==1.37.37 +boto3==1.37.38 # via # -r requirements/pip.txt # django-storages -botocore==1.37.37 +botocore==1.37.38 # via # -r requirements/pip.txt # boto3 @@ -105,7 +105,7 @@ dj-pagination==2.5.0 # via -r requirements/pip.txt dj-stripe==2.6.3 # via -r requirements/pip.txt -django==4.2.20 +django==5.2 # via # -r requirements/pip.txt # dj-stripe @@ -162,11 +162,11 @@ django-ipware==5.0.2 # django-structlog django-polymorphic==3.1.0 # via -r requirements/pip.txt -django-safemigrate==4.3 +django-safemigrate==5.3 # via -r requirements/pip.txt django-simple-history==3.8.0 # via -r requirements/pip.txt -django-storages[boto3]==1.14.3 +django-storages[boto3]==1.14.6 # via -r requirements/pip.txt django-structlog==2.2.0 # via -r requirements/pip.txt diff --git a/requirements/docker.txt b/requirements/docker.txt index afed55f6d5a..4d4dd1a9828 100644 --- a/requirements/docker.txt +++ b/requirements/docker.txt @@ -24,11 +24,11 @@ billiard==4.2.1 # via # -r requirements/pip.txt # celery -boto3==1.37.37 +boto3==1.37.38 # via # -r requirements/pip.txt # django-storages -botocore==1.37.37 +botocore==1.37.38 # via # -r requirements/pip.txt # boto3 @@ -113,7 +113,7 @@ dj-pagination==2.5.0 # via -r requirements/pip.txt dj-stripe==2.6.3 # via -r requirements/pip.txt -django==4.2.20 +django==5.2 # via # -r requirements/pip.txt # dj-stripe @@ -170,11 +170,11 @@ django-ipware==5.0.2 # django-structlog django-polymorphic==3.1.0 # via -r requirements/pip.txt -django-safemigrate==4.3 +django-safemigrate==5.3 # via -r requirements/pip.txt django-simple-history==3.8.0 # via -r requirements/pip.txt -django-storages[boto3]==1.14.3 +django-storages[boto3]==1.14.6 # via -r requirements/pip.txt django-structlog==2.2.0 # via -r requirements/pip.txt diff --git a/requirements/pip.in b/requirements/pip.in index bd400e1b6b2..0f1a510dec7 100644 --- a/requirements/pip.in +++ b/requirements/pip.in @@ -2,7 +2,7 @@ pip virtualenv -django~=4.2.0 +django~=5.2.0 django-extensions django-polymorphic django-autoslug @@ -33,7 +33,7 @@ django-vanilla-views # dependency as well. jsonfield -django-safemigrate==4.3 +django-safemigrate # Impersonate users in the Django admin for support. django-impersonate @@ -119,10 +119,7 @@ django-cors-headers # User agent parsing - used for analytics purposes user-agents -# Pinned because we need to remove the usage of -# `get_available_overwrite_name` first -# See https://github.com/readthedocs/readthedocs.org/pull/11505 -django-storages[boto3]==1.14.3 +django-storages[boto3] # Required only in development and linting @@ -138,6 +135,7 @@ django-csp==3.8 # NOTE: that django-structlog is in version 6.x now, # so we should probably consider migrating to avoid incompatibility issues. django-structlog==2.2.0 + # Pining due to a Sentry error we started getting # https://read-the-docs.sentry.io/issues/4678167578/events/2d9d348729874d67b120b153908ca54c/ django-ipware<6.0.0 diff --git a/requirements/pip.txt b/requirements/pip.txt index b3c4cbea287..4fe05eaf3fe 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -15,9 +15,9 @@ asgiref==3.8.1 # django-cors-headers billiard==4.2.1 # via celery -boto3==1.37.37 +boto3==1.37.38 # via django-storages -botocore==1.37.37 +botocore==1.37.38 # via # boto3 # s3transfer @@ -68,7 +68,7 @@ dj-pagination==2.5.0 # via -r requirements/pip.in dj-stripe==2.6.3 # via -r requirements/pip.in -django==4.2.20 +django==5.2 # via # -r requirements/pip.in # dj-stripe @@ -125,11 +125,11 @@ django-ipware==5.0.2 # django-structlog django-polymorphic==3.1.0 # via -r requirements/pip.in -django-safemigrate==4.3 +django-safemigrate==5.3 # via -r requirements/pip.in django-simple-history==3.8.0 # via -r requirements/pip.in -django-storages[boto3]==1.14.3 +django-storages[boto3]==1.14.6 # via -r requirements/pip.in django-structlog==2.2.0 # via -r requirements/pip.in diff --git a/requirements/testing.txt b/requirements/testing.txt index 643a8444563..a463e979c01 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -26,11 +26,11 @@ billiard==4.2.1 # via # -r requirements/pip.txt # celery -boto3==1.37.37 +boto3==1.37.38 # via # -r requirements/pip.txt # django-storages -botocore==1.37.37 +botocore==1.37.38 # via # -r requirements/pip.txt # boto3 @@ -110,7 +110,7 @@ dj-pagination==2.5.0 # via -r requirements/pip.txt dj-stripe==2.6.3 # via -r requirements/pip.txt -django==4.2.20 +django==5.2 # via # -r requirements/pip.txt # dj-stripe @@ -169,11 +169,11 @@ django-ipware==5.0.2 # django-structlog django-polymorphic==3.1.0 # via -r requirements/pip.txt -django-safemigrate==4.3 +django-safemigrate==5.3 # via -r requirements/pip.txt django-simple-history==3.8.0 # via -r requirements/pip.txt -django-storages[boto3]==1.14.3 +django-storages[boto3]==1.14.6 # via -r requirements/pip.txt django-structlog==2.2.0 # via -r requirements/pip.txt