Commit 20a35eaa authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Removed creating the admin user in the populate script.

parent f4fb4ab1
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -7,17 +7,6 @@ class Command(BaseCommand):

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

        #=====================
        #  Admin
        #=====================
        try:
            User.objects.get(username='admin')
            print('Not creating admin user as it already exist')
            
        except User.DoesNotExist:
            print('Creating admin user with default password')
            admin = User.objects.create_superuser('admin', 'admin@example.com', 'admin')
            Profile.objects.create(user=admin)

        #=====================    
        #  Testuser