Changed name of variable,added help_text for MML

This commit is contained in:
2025-02-18 11:40:26 +01:00
parent 7151cd0c4d
commit dcb94e28ff
2 changed files with 31 additions and 29 deletions

View File

@@ -44,28 +44,28 @@ class CreatedBy(models.Model):
class Organization(models.Model):
name = models.CharField(max_length=255)
email = models.EmailField()
employee_headcount = models.CharField(max_length=20)
annual_revenue = models.CharField(max_length=20)
critical_applications = models.CharField(max_length=20)
compliance_frameworks = models.JSONField() # Stores selected compliance frameworks as a list
industry_sector = models.CharField(max_length=255)
it_dependency = models.IntegerField()
data_sensitivity = models.CharField(max_length=20)
network_infrastructure = models.CharField(max_length=20)
remote_workforce_percentage = models.CharField(max_length=20)
third_party_vendor_access = models.CharField(max_length=20)
internal_software_development = models.CharField(max_length=20)
geographic_scope = models.CharField(max_length=20, null=True, blank=True)
customer_base = models.CharField(max_length=20, null=True, blank=True)
customer_type = models.CharField(max_length=20, null=True, blank=True)
product_portfolio = models.CharField(max_length=20, null=True, blank=True)
supplier_base = models.CharField(max_length=20, null=True, blank=True)
it_infrastructure = models.JSONField(null=True, blank=True) # Stores selected IT infrastructure types as a list
intellectual_property = models.JSONField(null=True, blank=True) # Stores selected IP protection types as a list
sensitive_data = models.JSONField(null=True, blank=True) # Stores selected sensitive data types as a list
integration_level = models.CharField(max_length=20, null=True, blank=True)
name = models.CharField(max_length=255, help_text="What is the name of your organization?")
email = models.EmailField(help_text="What is your email?")
employee_headcount = models.CharField(max_length=20, help_text="What is your organization's current employee headcount?")
annual_revenue = models.CharField(max_length=20, help_text="What is your organization's annual revenue range?")
critical_applications = models.CharField(max_length=20, help_text="How many critical business applications do your employees use daily?")
compliance_frameworks = models.JSONField(help_text="Which regulatory frameworks is your organization required to comply with?") # Stores selected compliance frameworks as a list
industry_sector = models.CharField(max_length=255,help_text="What is your primary industry sector?")
it_dependency = models.IntegerField(help_text="On a scale from 1-10, how dependent is your business operations on technology?")
data_sensitivity = models.CharField(max_length=20, help_text="What level of sensitive data does your organization process?")
network_infrastructure = models.CharField(max_length=20, help_text="What best describes your organization's network infrastructure model?")
remote_workforce_percentage = models.CharField(max_length=20, help_text="What percentage of your workforce operates remotely?")
third_party_vendor_access = models.CharField(max_length=20, help_text="How many third-party vendors have access to your systems?")
internal_software_development = models.CharField(max_length=20, help_text="What is the extent of your internal software development activities?")
geographic_scope = models.CharField(max_length=20, null=True, blank=True, help_text="What is your organization's geographic operational scope?")
customer_base = models.CharField(max_length=20, null=True, blank=True, help_text="How would you characterize your customer base distribution?")
customer_type = models.CharField(max_length=20, null=True, blank=True, help_text="What is your primary customer type?")
product_portfolio = models.CharField(max_length=20, null=True, blank=True, help_text="How diversified is your product/service portfolio?")
supplier_base = models.CharField(max_length=20, null=True, blank=True, help_text="What is your supplier base structure?")
it_infrastructure = models.JSONField(null=True, blank=True, help_text="What is your primary IT infrastructure model?") # Stores selected IT infrastructure types as a list
intellectual_property = models.JSONField(null=True, blank=True, help_text="How does your organization protect and manage intellectual property?") # Stores selected IP protection types as a list
sensitive_data = models.JSONField(null=True, blank=True, help_text="What type of sensitive data does your organization handle?") # Stores selected sensitive data types as a list
integration_level = models.CharField(max_length=20, null=True, blank=True, help_text="How integrated are your critical business systems?")
risks = models.ManyToManyField('Risk', related_name='organizations', blank=True)