Added a display of the last 20 Works w/o identifiers
parent
078c853baf
commit
f5029004bb
|
@ -6,6 +6,9 @@ class Command(BaseCommand):
|
|||
|
||||
def handle(self, **options):
|
||||
print "Number of Works without identifiers: ", models.Work.objects.filter(identifiers__isnull=True).count()
|
||||
for w in models.Work.objects.filter(identifiers__isnull=True)[0:20]:
|
||||
print "id: %d | title: %s | created: %s" % (w.id, w.title, w.created)
|
||||
|
||||
print "Number of Identifiers not tied to Works (should be 0): ", \
|
||||
models.Identifier.objects.filter(work__isnull=True).count()
|
||||
print "Number of Editions not tied to a Work (should be 0): ", models.Edition.objects.filter(work__isnull=True).count()
|
Loading…
Reference in New Issue