def handle(self, *args, **kwargs):
     from invoicing.models import Currency
     try:
         Currency.refresh_currencies()
         print "Done."
     except Exception as e:
         raise CommandError(e)
Beispiel #2
0
 def handle(self, *args, **kwargs):
     from invoicing.models import Currency
     try:
         Currency.refresh_currencies()
         print "Done."
     except Exception as e:
         raise CommandError(e)
Beispiel #3
0
def fetch_currencies():
    from invoicing.models import Currency
    Currency.refresh_currencies()