Skip to content

Commit

Permalink
Fixed migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Metzener committed Nov 14, 2016
1 parent c6b01b3 commit 8e507d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/core/migrations/migrate_party_user.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
from django.db import migrations
from django.contrib.auth.models import User
from core.models import Party
import csv
import re
import string
Expand All @@ -13,6 +12,8 @@ def generate_password(length=12):
return ''.join(choice(characters) for x in range(length))

def add_user_for_parties(apps, schema_editor):
Party = apps.get_model('core', 'Party')

parties = Party.objects.all()

for party in parties:
Expand Down

0 comments on commit 8e507d9

Please sign in to comment.