mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
This adds the is_user_active with the appropriate code for setting the value correctly in the future. In the following commit a migration to backfill the value for existing Subscriptions will be added. To ensure correct user_profile.is_active handling also in tests, we replace all direct .is_active mutation with calls to appropriate functions.
19 lines
402 B
Python
19 lines
402 B
Python
# Generated by Django 3.1.5 on 2021-01-31 15:17
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("zerver", "0311_userprofile_default_view"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="subscription",
|
|
name="is_user_active",
|
|
field=models.BooleanField(null=True),
|
|
),
|
|
]
|