from django.core.management.base import BaseCommand

from openslides.users.models import UserManager


class Command(BaseCommand):
    """
    Command to create a new OpenSlides user
    """
    help = 'Creates an OpenSlides user.'

    def add_arguments(self, parser):
        parser.add_argument(
            'first_name',
            help='The first name of the new user.'
        )
        parser.add_argument(
            'last_name',
            help='The last name of the new user.'
        )
        parser.add_argument(
            'username',
            help='The username of the new user.'
        )
        parser.add_argument(
            'password',
            help='The password of the new user.'
        )

    def handle(self, *args, **options):
        user_data = {
            'first_name': options['first_name'],
            'last_name': options['last_name'],
        }
        UserManager.create_user(options['username'], options['password'], **user_data)

@@ -55,24 +55,10 @@
 rom 
-openslides.users
+..
 .mod
@@ -72,23 +72,16 @@
 ort User
-Manager
 %0A%0A%0Aclass
@@ -134,20 +134,17 @@
 create a
- new
+n
  OpenSli
@@ -151,16 +151,17 @@
 des user
+.
 %0A    %22%22%22
@@ -879,15 +879,16 @@
 User
-Manager
+.objects
 .cre

Update createopenslidesuser.py