1
0
Fork 0

Mark imports as complete

This will let the user debug the import, and should only be used when
the import is in a bad state (marked as incomplete but with no pending
tasks)
This commit is contained in:
Mouse Reeve 2022-11-01 19:26:23 -07:00
parent 6eab1fdd6d
commit a8424f61f2
5 changed files with 54 additions and 2 deletions

View file

@ -53,6 +53,7 @@ class ImportJob(models.Model):
"""How many books do you want to import???"""
return self.items.count()
@property
def pending_item_count(self):
"""And how many pending items??"""
return self.pending_items.count()