From 1b2ae07d7cb40690c1c43fe1ffc1b3dc0c1ce3b9 Mon Sep 17 00:00:00 2001 From: rw-bsi Date: Sat, 15 Mar 2025 15:14:15 +0000 Subject: [PATCH] Additional field to capture being affiliated with a Vendor --- ...eradditionalinfo_is_vendor_self_declared.py | 18 ++++++++++++++++++ models.py | 9 ++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 migrations/0011_useradditionalinfo_is_vendor_self_declared.py diff --git a/migrations/0011_useradditionalinfo_is_vendor_self_declared.py b/migrations/0011_useradditionalinfo_is_vendor_self_declared.py new file mode 100644 index 0000000..e97e567 --- /dev/null +++ b/migrations/0011_useradditionalinfo_is_vendor_self_declared.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.6 on 2025-03-15 15:01 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ifc_validation_models', '0010_change_authoring_tool_unique_constraint'), + ] + + operations = [ + migrations.AddField( + model_name='useradditionalinfo', + name='is_vendor_self_declared', + field=models.BooleanField(blank=True, help_text='Whether this user has self-declared an affiliation with an Authoring Tool vendor (optional)', null=True), + ), + ] diff --git a/models.py b/models.py index 74bd09e..461cd7a 100644 --- a/models.py +++ b/models.py @@ -262,7 +262,14 @@ class UserAdditionalInfo(AuditedBaseModel): null=True, blank=True, help_text='Whether this user belongs to an Authoring Tool vendor (optional)' - ) + ) + + is_vendor_self_declared = models.BooleanField( + null=True, + blank=True, + verbose_name=("is vendor (self declared)"), + help_text='Whether this user has self-declared an affiliation with an Authoring Tool vendor (optional)' + ) company = models.ForeignKey( Company,