Skip to content

Commit

Permalink
Add related name to one to one relation
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed Oct 30, 2024
1 parent c6885fe commit 694e466
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 4.2.16 on 2024-10-30 15:40

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
("organisations", "0058_update_audit_and_history_limits_in_sub_cache"),
("licensing", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="organisationlicence",
name="organisation",
field=models.OneToOneField(
on_delete=django.db.models.deletion.CASCADE,
related_name="licence",
to="organisations.organisation",
),
),
]

0 comments on commit 694e466

Please sign in to comment.