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:
parent
6eab1fdd6d
commit
a8424f61f2
5 changed files with 54 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue