from django.core.management.base import BaseCommand


from api.factories import (
    InternationalFactory,
)


class Command(BaseCommand):
    help = "Command to seed database."

    def handle(self, *args, **options):
        InternationalFactory()

from django.core.management.base import BaseCommand


class Command(BaseCommand):
    help = "Command to seed database."

    from api.factories import (
        InternationalFactory,
    )

    def handle(self, *args, **options):
        self.InternationalFactory()

Fix seeding in management command
Fix seeding in management command

  from django.core.management.base import BaseCommand
- 
- 
- from api.factories import (
-     InternationalFactory,
- )
  
  
  class Command(BaseCommand):
      help = "Command to seed database."
  
+     from api.factories import (
+         InternationalFactory,
+     )
+ 
      def handle(self, *args, **options):
-         InternationalFactory()
+         self.InternationalFactory()
  
Fix seeding in management command
## Code Before:
from django.core.management.base import BaseCommand


from api.factories import (
    InternationalFactory,
)


class Command(BaseCommand):
    help = "Command to seed database."

    def handle(self, *args, **options):
        InternationalFactory()

## Instruction:
Fix seeding in management command
## Code After:
from django.core.management.base import BaseCommand


class Command(BaseCommand):
    help = "Command to seed database."

    from api.factories import (
        InternationalFactory,
    )

    def handle(self, *args, **options):
        self.InternationalFactory()
