diff --git a/leftists/migrations/0001_initial.py b/leftists/migrations/0001_initial.py index 30ae6d5..9e091d3 100644 --- a/leftists/migrations/0001_initial.py +++ b/leftists/migrations/0001_initial.py @@ -1,7 +1,8 @@ -# Generated by Django 4.0.5 on 2022-06-19 14:05 +# Generated by Django 4.0.5 on 2022-06-20 11:19 from django.db import migrations, models import django.db.models.deletion +import leftists.models class Migration(migrations.Migration): @@ -23,7 +24,7 @@ class Migration(migrations.Migration): name='ShortLink', fields=[ ('slug', models.CharField(max_length=6, primary_key=True, serialize=False, unique=True)), - ('location', models.CharField(max_length=100, verbose_name='short link')), + ('location', models.CharField(max_length=100, validators=[leftists.models.validate_location], verbose_name='short link')), ('to', models.URLField(max_length=2500, verbose_name='redirect to')), ('click_count', models.IntegerField(default=0)), ('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='links', to='leftists.domain')),