@@ -0,0 +1,932 @@
+# Generated by Django 4.0.6 on 2022-08-08 16:52%0A%0Afrom django.db import migrations%0Afrom django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor%0Afrom django.db.migrations.state import StateApps%0Afrom django.db.models import Q%0A%0A%0Adef set_default_for_enable_read_receipts(%0A    apps: StateApps, schema_editor: BaseDatabaseSchemaEditor%0A) -%3E None:%0A    Realm = apps.get_model(%22zerver%22, %22Realm%22)%0A    # We enable read receipts by default in realms which require an invitation to%0A    # join or which allow only users having emails with specific domains to join.%0A    Realm.objects.filter(Q(invite_required=True) %7C Q(emails_restricted_to_domains=True)).update(%0A        enable_read_receipts=True%0A    )%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        (%22zerver%22, %220404_realm_enable_read_receipts%22),%0A    %5D%0A%0A    operations = %5B%0A        migrations.RunPython(set_default_for_enable_read_receipts, elidable=True),%0A    %5D%0A

Add migration to set default value of enable_read_receipts.