GeriLife / companionship

Promoting companionship and well-being for everyone.
European Union Public License 1.2
7 stars 18 forks source link

disable auto-named migrations #105

Closed brylie closed 1 year ago

brylie commented 1 year ago

Task

from django.core.management.base import CommandError
from django.core.management.commands.makemigrations import (
    Command as BaseCommand,
)

class Command(BaseCommand):
    def handle(self, *app_labels, name, dry_run, merge, **options):
        if name is None and not dry_run and not merge:
            raise CommandError("-n/--name is required.")

        super().handle(
            *app_labels,
            name=name,
            dry_run=dry_run,
            merge=merge,
            **options,
        )
brylie commented 1 year ago

@petesfrench, would you mind commenting on this issue so I can assign you?

petesfrench commented 1 year ago

Of course!