0005_subname_validation.py 720 B

1234567891011121314151617181920
  1. # Generated by Django 3.1 on 2020-09-08 14:01
  2. import desecapi.models
  3. import django.core.validators
  4. from django.db import migrations, models
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ('desecapi', '0004_immortal_domains'),
  8. ]
  9. operations = [
  10. migrations.AlterField(
  11. model_name='rrset',
  12. name='subname',
  13. field=models.CharField(blank=True, max_length=178, validators=[desecapi.models.validate_lower, django.core.validators.RegexValidator(code='invalid_subname', message="Subname can only use (lowercase) a-z, 0-9, ., -, and _, may start with a '*.', or just be '*'.", regex='^([*]|(([*][.])?([a-z0-9_-]+[.])*[a-z0-9_-]+))$')]),
  14. ),
  15. ]