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()
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()
def handle(self, *args, **options): load_all = options.get('all') all = options.get('all') if options.get('it') or all: italy()