MCPcopy
hub / github.com/uselotus/lotus / save

Method save

backend/metering_billing/models.py:724–735  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

722 return str(self.customer_name) + " " + str(self.customer_id)
723
724 def save(self, *args, **kwargs):
725 if not self.default_currency:
726 try:
727 self.default_currency = (
728 self.organization.default_currency
729 or PricingUnit.objects.get(
730 code="USD", organization=self.organization
731 )
732 )
733 except PricingUnit.DoesNotExist:
734 self.default_currency = None
735 super(Customer, self).save(*args, **kwargs)
736
737 def get_active_subscription_records(self):
738 active_subscription_records = self.subscription_records.active().filter(

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected