Ooop: the last test was tautological...fixed typo

pull/1/head
Raymond Yee 2012-01-30 18:35:52 -08:00
parent b187663299
commit a37a401171
1 changed files with 1 additions and 1 deletions

View File

@ -23,4 +23,4 @@ class Command(BaseCommand):
print "Number of Works that have editions->identifiers that don't lead back to the same work (should be 0): ", models.Work.objects.filter(~Q(editions__identifiers__work__id = F('id'))).count()
# check that for all Identifier pairs with an Edition that Edition<->Work foreign key relationships ties the same Edition/Work
print "Number of Identifier pairs with an Edition in which Edition<->Work foreign key relationships does not tie the same Edition/Work (should be 0): ", \
models.Identifier.objects.filter(edition__isnull=False).filter(~Q(edition__work__id = F('edition__work__id'))).count()
models.Identifier.objects.filter(edition__isnull=False).filter(~Q(edition__work__id = F('work__id'))).count()