import django.core.validators
from django.db import migrations, models

from zerver.models import filter_format_validator, filter_pattern_validator


class Migration(migrations.Migration):

    dependencies = [
        ("zerver", "0042_attachment_file_name_length"),
    ]

    operations = [
        migrations.AlterField(
            model_name="realmfilter",
            name="pattern",
            field=models.TextField(validators=[filter_pattern_validator]),
        ),
        migrations.AlterField(
            model_name="realmfilter",
            name="url_format_string",
            field=models.TextField(
                validators=[django.core.validators.URLValidator, filter_format_validator]
            ),
        ),
    ]
