diff --git a/tenants/migrations/0007_alter_tenant_links.py b/tenants/migrations/0007_alter_tenant_links.py new file mode 100644 index 0000000..2d891e3 --- /dev/null +++ b/tenants/migrations/0007_alter_tenant_links.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.4 on 2024-12-25 22:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("tenants", "0006_alter_tenant_options"), + ] + + operations = [ + migrations.AlterField( + model_name="tenant", + name="links", + field=models.ManyToManyField(blank=True, to="tenants.link"), + ), + ] diff --git a/tenants/models.py b/tenants/models.py index 796f58a..6ae5013 100644 --- a/tenants/models.py +++ b/tenants/models.py @@ -48,7 +48,7 @@ class Tenant(Model): upload_to="uploads/", validators=[only_png], ) - links = ManyToManyField(Link) + links = ManyToManyField(Link, blank=True) admins = ManyToManyField(get_user_model()) def __str__(self):