diff --git a/akarpov/tools/shortener/migrations/0005_alter_link_table.py b/akarpov/tools/shortener/migrations/0005_alter_link_table.py new file mode 100644 index 0000000..20134a9 --- /dev/null +++ b/akarpov/tools/shortener/migrations/0005_alter_link_table.py @@ -0,0 +1,16 @@ +# Generated by Django 4.2.4 on 2023-08-06 06:13 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("shortener", "0004_alter_linkviewmeta_options"), + ] + + operations = [ + migrations.AlterModelTable( + name="link", + table="short_link", + ), + ] diff --git a/akarpov/tools/shortener/models.py b/akarpov/tools/shortener/models.py index 717ae1b..78b86f3 100644 --- a/akarpov/tools/shortener/models.py +++ b/akarpov/tools/shortener/models.py @@ -33,6 +33,7 @@ def __str__(self): class Meta: ordering = ["-modified"] + db_table = "short_link" class LinkViewMeta(models.Model):