register and sign in pages
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from locations.models import Atoll, Island
|
||||
from locations.seed import seed
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Create the atolls and islands SAR Link serves (idempotent)."
|
||||
|
||||
def handle(self, *args, **options):
|
||||
atolls, islands = seed(Atoll, Island)
|
||||
self.stdout.write(
|
||||
self.style.SUCCESS(
|
||||
f"Locations seeded: {atolls} atoll(s), {islands} island(s) created."
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user