We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b43de2 commit 0b77c03Copy full SHA for 0b77c03
1 file changed
partner_programs/migrations/0004_auto_20231230_0002.py
@@ -2,7 +2,6 @@
2
3
from django.db import migrations
4
5
-from partner_programs.models import PartnerProgramUserProfile
6
7
FIELDS_TO_DELETE = [
8
'password',
@@ -18,6 +17,7 @@
18
17
19
20
def normalize_profiles_data(apps, schema_editor):
+ PartnerProgramUserProfile = apps.get_model("partner_programs", "PartnerProgramUserProfile")
21
for profile in PartnerProgramUserProfile.objects.all():
22
program_data = profile.partner_program_data
23
if any(field in program_data for field in FIELDS_TO_DELETE):
0 commit comments