diff --git a/src/profiles/migrations/0007_auto_20170711_2025.py b/src/profiles/migrations/0007_auto_20170711_2025.py index e1dea74c..1c2aa69c 100644 --- a/src/profiles/migrations/0007_auto_20170711_2025.py +++ b/src/profiles/migrations/0007_auto_20170711_2025.py @@ -5,21 +5,7 @@ from __future__ import unicode_literals from django.db import migrations def populate_team_responsible_public_credit_names(apps, schema_editor): - Profile = apps.get_model("profiles", "Profile") - TeamMember = apps.get_model("teams", "TeamMember") - Team = apps.get_model("teams", "TeamMember") - - for team in Team.objects.all(): - if TeamMember.objects.filter(team=team, responsible=True).exists(): - responsibles = User.objects.filter(teammember__team=team, teammember__responsible=True) - else: - responsibles = team.area.responsible.all() - for resp in responsibles: - if not resp.profile.public_credit_name: - profile = resp.profile - profile.public_credit_name = resp.profile.name - profile.save() - + pass class Migration(migrations.Migration):