Browse Source

recreate initial migrations for initial release

main
xenua 2 years ago
parent
commit
5c511ada14
Signed by: xenua
GPG Key ID: 8F93B68BD37255B8
  1. 5
      leftists/migrations/0001_initial.py

5
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 from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
import leftists.models
class Migration(migrations.Migration): class Migration(migrations.Migration):
@ -23,7 +24,7 @@ class Migration(migrations.Migration):
name='ShortLink', name='ShortLink',
fields=[ fields=[
('slug', models.CharField(max_length=6, primary_key=True, serialize=False, unique=True)), ('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')), ('to', models.URLField(max_length=2500, verbose_name='redirect to')),
('click_count', models.IntegerField(default=0)), ('click_count', models.IntegerField(default=0)),
('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='links', to='leftists.domain')), ('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='links', to='leftists.domain')),

Loading…
Cancel
Save