diff --git a/doc/development/setup.rst b/doc/development/setup.rst index ce23a7e6b7..a0d04f36ff 100644 --- a/doc/development/setup.rst +++ b/doc/development/setup.rst @@ -41,13 +41,11 @@ Then, create the local database:: python manage.py migrate -If you need some test data, run:: +A first user with username ``admin@localhost`` and password ``admin`` will be automatically +created. If you want to genreate more test data, run:: python make_testdata.py -and a sample event with sample products and a user ``admin@localhost`` with password -``admin`` will be created. - Create the translation files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ If you're working with the translation, you can use the following command to scan the diff --git a/src/make_testdata.py b/src/make_testdata.py index 6fffc622ae..94f4a69d10 100644 --- a/src/make_testdata.py +++ b/src/make_testdata.py @@ -13,10 +13,8 @@ from pretix.base.models import * if Organizer.objects.exists(): print("There already is data in your DB!") sys.exit(0) -user = User.objects.create_global_user( +user = User.objects.get( identifier='admin@localhost', - email='admin@localhost', - password='admin' ) organizer = Organizer.objects.create( name='MRMCD e.V', slug='mrmcd' diff --git a/src/pretix/control/templates/pretixcontrol/base.html b/src/pretix/control/templates/pretixcontrol/base.html index 8884592f22..3e5a7393d9 100644 --- a/src/pretix/control/templates/pretixcontrol/base.html +++ b/src/pretix/control/templates/pretixcontrol/base.html @@ -48,7 +48,7 @@