rename Item.itemId to Item.public_id

This commit is contained in:
j 2014-09-19 12:26:46 +00:00
commit 3232ce6989
44 changed files with 382 additions and 213 deletions

View file

@ -16,4 +16,4 @@ def update_file_paths(id):
from item.tasks import update_file_paths
p = models.Person.objects.get(pk=id)
for i in Item.objects.filter(find__value__icontains=p.name).distinct():
update_file_paths(i.itemId)
update_file_paths(i.public_id)