mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
The database value for expiry_date is None for the invite that will never expire and the clients send -1 as value in the API similar to the message retention setting. Also, when passing invite_expire_in_days as an argument in various functions, invite_expire_in_days is passed as -1 for "Never expires" option since invite_expire_in_days is an optional argument in some functions and thus we cannot pass "None" value.
19 lines
429 B
Python
19 lines
429 B
Python
# Generated by Django 3.2.9 on 2021-11-30 17:44
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("confirmation", "0010_alter_confirmation_expiry_date"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name="confirmation",
|
|
name="expiry_date",
|
|
field=models.DateTimeField(db_index=True, null=True),
|
|
),
|
|
]
|