Skip to content

Commit

Permalink
Allow blank on tenant links
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Dec 26, 2024
1 parent 75fe192 commit 6659415
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions tenants/migrations/0007_alter_tenant_links.py
Original file line number Diff line number Diff line change
@@ -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"),
),
]
2 changes: 1 addition & 1 deletion tenants/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6659415

Please sign in to comment.