コード例 #1
0
ファイル: fixtures.py プロジェクト: saxix/django-geo
def hierachy():
    Country.objects.all().delete()
    Currency.objects.all().delete()
    Country.objects.get_or_create(
        iso_code="IT", iso_code3="ITA", iso_num=380, name="Italy", fullname="Italy, Italian Republic"
    )

    return italy()
コード例 #2
0
def hierachy():
    Country.objects.all().delete()
    Currency.objects.all().delete()
    Country.objects.get_or_create(iso_code='IT',
                                  iso_code3='ITA',
                                  iso_num=380,
                                  name='Italy',
                                  fullname='Italy, Italian Republic')

    return italy()
コード例 #3
0
    def handle(self, *args, **options):
        load_all = options.get('all')
        all = options.get('all')

        if options.get('it') or all:
            italy()