Begin phasing in the uncloudprovider
This commit is contained in:
parent
e03cdf214a
commit
fe4e200dc0
3 changed files with 29 additions and 2 deletions
|
|
@ -1010,7 +1010,12 @@ class Order(models.Model):
|
|||
|
||||
|
||||
def __str__(self):
|
||||
return f"Order {self.id}: {self.description} {self.config}"
|
||||
try:
|
||||
conf = " ".join([ f"{key}:{val}" for key,val in self.config['features'].items() if val != 0 ])
|
||||
except KeyError:
|
||||
conf = ""
|
||||
|
||||
return f"Order {self.id}: {self.description} {conf}"
|
||||
|
||||
class Bill(models.Model):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue