mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 08:52:15 +00:00
Move user/group setup into new generateSampleUserData command
This commit is contained in:
@@ -3,11 +3,13 @@ from django.core.management.base import BaseCommand
|
||||
|
||||
from RIGS import models
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Adds sample data to use for testing'
|
||||
can_import_settings = True
|
||||
|
||||
def handle(self, *args, **options):
|
||||
call_command('generateSampleUserData')
|
||||
call_command('generateSampleRIGSData')
|
||||
call_command('generateSampleAssetsData')
|
||||
# call_command('createinitialrevisions') TODO
|
||||
call_command('createinitialrevisions')
|
||||
|
||||
Reference in New Issue
Block a user