++update ungleich_provider

This commit is contained in:
Nico Schottelius 2020-10-11 22:36:01 +02:00
parent bbc7625550
commit 0cd8a3a787

View file

@ -105,8 +105,11 @@ class UncloudProvider(UncloudAddress):
@classmethod @classmethod
def populate_db_defaults(cls): def populate_db_defaults(cls):
obj, created = cls.objects.get_or_create(name="ungleich glarus ag", obj, created = cls.objects.get_or_create(full_name="ungleich glarus ag",
address="Bahnhofstrasse 1\n8783 Linthal\nSwitzerland", street="Bahnhofstrasse 1",
postal_code="8783",
city="Linthal",
country="CH",
starting_date=timezone.now(), starting_date=timezone.now(),
billing_network=UncloudNetwork.objects.get(description="uncloud Billing"), billing_network=UncloudNetwork.objects.get(description="uncloud Billing"),
referral_network=UncloudNetwork.objects.get(description="uncloud Referral") referral_network=UncloudNetwork.objects.get(description="uncloud Referral")
@ -114,4 +117,4 @@ class UncloudProvider(UncloudAddress):
def __str__(self): def __str__(self):
return f"{self.name} {self.address}" return f"{self.full_name} {self.country}"