from django.core.management.base import BaseCommand from inventory.models import VatRate from decimal import Decimal class Command(BaseCommand): def handle(self, *args, **kwargs): VatRate.objects.get_or_create(rate=Decimal("0.15"), is_active=True)