From 5c511ada14ccb27b9ae14bf3e0ca7738cabfe6c0 Mon Sep 17 00:00:00 2001 From: xenua Date: Mon, 20 Jun 2022 13:20:49 +0200 Subject: [PATCH] recreate initial migrations for initial release --- leftists/migrations/0001_initial.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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')),