forked from uncloud/uncloud
++update ungleich_provider
This commit is contained in:
parent
bbc7625550
commit
0cd8a3a787
1 changed files with 6 additions and 3 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue