WIP: Cleanup
This commit is contained in:
parent
715224653d
commit
6ee942f8dc
37 changed files with 547 additions and 2591 deletions
24
gurps_character/management/commands/clear_data.py
Normal file
24
gurps_character/management/commands/clear_data.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
from django.contrib.auth.models import User
|
||||
from django.core.management import BaseCommand
|
||||
|
||||
|
||||
def create_users():
|
||||
user = User.objects.create_user(
|
||||
username="neill",
|
||||
is_superuser=True,
|
||||
first_name="Neill",
|
||||
last_name="Cox",
|
||||
email="neill@neill.id.au",
|
||||
is_staff=True,
|
||||
is_active=True,
|
||||
date_joined="2024-07-31T00:00:00.000Z",
|
||||
password="password",
|
||||
)
|
||||
# user.save()
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Load some initial data"
|
||||
|
||||
def handle(self, *args, **options):
|
||||
create_users()
|
||||
Loading…
Add table
Add a link
Reference in a new issue