Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit 8108fd9

Browse files
author
Allen Short
committed
Persona id is different from persona_id, use the right one
1 parent bfdcda6 commit 8108fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/addons/management/commands/migrate_personas_static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def handle(self, *args, **options):
2525
if 'amo_dir' not in options:
2626
print "Needs --addons-dir."
2727
return
28-
mapping = dict(Persona.objects.values_list('pk', 'addon_id'))
28+
mapping = dict(Persona.objects.values_list('persona_id', 'addon_id'))
2929
for first in os.listdir(options['personas_dir']):
3030
if not first.isdigit():
3131
continue

0 commit comments

Comments
 (0)