procat2/models: fix page count - add breaker pages
This commit is contained in:
@ -151,6 +151,7 @@ class Catalog(models.Model):
|
||||
materials = 0
|
||||
for section in data.get('sections', []):
|
||||
sections += 1
|
||||
pages += 1 # for breaker page
|
||||
for page in section.get('pages', []):
|
||||
pages += 1
|
||||
for block in page:
|
||||
|
||||
Reference in New Issue
Block a user