From f6455638d75754b68c15779e96f6949871501e65 Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 27 Dec 2024 20:31:04 +0100 Subject: [PATCH] add container to testdata.py --- deploy/testdata.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy/testdata.py b/deploy/testdata.py index dca385f..3b59d27 100644 --- a/deploy/testdata.py +++ b/deploy/testdata.py @@ -70,6 +70,15 @@ def setup(): issue_thread=issue_thread, )[0] + from inventory.models import Container + + Container.objects.get_or_create( + id=1, + name='testcontainer' + )[0] + + + def main(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")