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