From 694e46604a84218b934c6f8a310bcc7c2225ddea Mon Sep 17 00:00:00 2001 From: Zach Aysan Date: Wed, 30 Oct 2024 15:54:35 +0000 Subject: [PATCH] Add related name to one to one relation --- ..._alter_organisationlicence_organisation.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 api/organisations/subscriptions/licensing/migrations/0002_alter_organisationlicence_organisation.py diff --git a/api/organisations/subscriptions/licensing/migrations/0002_alter_organisationlicence_organisation.py b/api/organisations/subscriptions/licensing/migrations/0002_alter_organisationlicence_organisation.py new file mode 100644 index 000000000000..f46b3dad4ede --- /dev/null +++ b/api/organisations/subscriptions/licensing/migrations/0002_alter_organisationlicence_organisation.py @@ -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", + ), + ), + ]