# encoding: utf-8
# Copyright 2013 maker
# License

# encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models

class Migration(DataMigration):

    def forwards(self, orm):
        "Add currencies to financial items"
        try:
            currency = orm['finance.Currency'].objects.get(is_default=True)
        except:
            currency = orm['finance.Currency'].objects.create()
            currency.code = "USD"