Promene u dizajnu dokumenata, controla, residual graph, residual tabele...
This commit is contained in:
@@ -15,10 +15,13 @@ class Command(BaseCommand):
|
||||
reader = csv.DictReader(csv_file)
|
||||
|
||||
for row in reader:
|
||||
safeguard = row["CIS v8.1 Safeguards (Sub-Controls)"].strip()
|
||||
|
||||
safeguard_id = row["Safeguard ID"].strip()
|
||||
safeguard = row["Name"].strip()
|
||||
description = row["Description"].strip()
|
||||
Control.objects.update_or_create(
|
||||
name=safeguard,
|
||||
name=safeguard,
|
||||
safeguard_id = safeguard_id,
|
||||
description=description,
|
||||
defaults={"name": safeguard},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user