Moved question<>item relation to the question side

Cleared migration history
This commit is contained in:
Raphael Michel
2015-10-06 00:00:38 +02:00
parent eb1c166c4e
commit e6767afbd1
27 changed files with 272 additions and 741 deletions

View File

@@ -13,9 +13,11 @@ from pretix.base.models import * # NOQA
if Organizer.objects.exists():
print("There already is data in your DB!")
sys.exit(0)
user = User.objects.get(
identifier='admin@localhost',
)
user = User.objects.get_or_create(
email='admin@localhost',
)[0]
user.set_password('admin')
user.save()
organizer = Organizer.objects.create(
name='MRMCD e.V', slug='mrmcd'
)