Remove use of another custom property and use the related_name feature of the document page model

This commit is contained in:
Roberto Rosario
2014-05-19 00:32:36 -04:00
parent 518137415a
commit e258f4c4c1
2 changed files with 5 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ class Migration(DataMigration):
checksum = document.checksum,
)
document_version.save()
for document_page in document.documentpage_set.all():
for document_page in document.pages.all():
document_page.document_version = document_version
document_page.save()