Skip to content

Commit 0b77c03

Browse files
committed
fix get model
1 parent 5b43de2 commit 0b77c03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

partner_programs/migrations/0004_auto_20231230_0002.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from django.db import migrations
44

5-
from partner_programs.models import PartnerProgramUserProfile
65

76
FIELDS_TO_DELETE = [
87
'password',
@@ -18,6 +17,7 @@
1817

1918

2019
def normalize_profiles_data(apps, schema_editor):
20+
PartnerProgramUserProfile = apps.get_model("partner_programs", "PartnerProgramUserProfile")
2121
for profile in PartnerProgramUserProfile.objects.all():
2222
program_data = profile.partner_program_data
2323
if any(field in program_data for field in FIELDS_TO_DELETE):

0 commit comments

Comments
 (0)