Files
zulip/zerver/migrations/0300_add_attachment_is_web_public.py
Clara Dantas 05bf72a75c attachments: Add is_web_public field.
This commit adds the is_web_public field in the AbstractAttachment
class. This is useful when validating user access to the attachment,
as otherwise we would have to make a query in the db to check if
that attachment was sent in a message in a web-public stream or not.
2020-08-12 17:26:03 -07:00

24 lines
570 B
Python

# Generated by Django 2.2.14 on 2020-07-31 21:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0299_subscription_role'),
]
operations = [
migrations.AddField(
model_name='archivedattachment',
name='is_web_public',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='attachment',
name='is_web_public',
field=models.BooleanField(default=False),
),
]