From 0cd8a3a78773c5237026863af50ea2d79ea2f4bb Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 11 Oct 2020 22:36:01 +0200 Subject: [PATCH] ++update ungleich_provider --- uncloud/models.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/uncloud/models.py b/uncloud/models.py index 24bc02b..680e166 100644 --- a/uncloud/models.py +++ b/uncloud/models.py @@ -105,8 +105,11 @@ class UncloudProvider(UncloudAddress): @classmethod def populate_db_defaults(cls): - obj, created = cls.objects.get_or_create(name="ungleich glarus ag", - address="Bahnhofstrasse 1\n8783 Linthal\nSwitzerland", + obj, created = cls.objects.get_or_create(full_name="ungleich glarus ag", + street="Bahnhofstrasse 1", + postal_code="8783", + city="Linthal", + country="CH", starting_date=timezone.now(), billing_network=UncloudNetwork.objects.get(description="uncloud Billing"), referral_network=UncloudNetwork.objects.get(description="uncloud Referral") @@ -114,4 +117,4 @@ class UncloudProvider(UncloudAddress): def __str__(self): - return f"{self.name} {self.address}" + return f"{self.full_name} {self.country}"