Add comma formatting to counts within import warning diff emails
This commit is contained in:
parent
00a8e2657c
commit
f6cf0e5971
|
@ -65,7 +65,7 @@
|
|||
% for model, (created, updated, deleted) in changes.iteritems():
|
||||
<li>
|
||||
<a href="#${model}">${model}</a>
|
||||
- ${len(created)} created, ${len(updated)} updated, ${len(deleted)} deleted
|
||||
- ${'{:,d}'.format(len(created))} created, ${'{:,d}'.format(len(updated))} updated, ${'{:,d}'.format(len(deleted))} deleted
|
||||
</li>
|
||||
% endfor
|
||||
</ul>
|
||||
|
@ -78,7 +78,7 @@
|
|||
% for model, (created, updated, deleted) in changes.iteritems():
|
||||
<h4>
|
||||
<a name="${model}">${model}</a>
|
||||
- ${len(created)} created, ${len(updated)} updated, ${len(deleted)} deleted
|
||||
- ${'{:,d}'.format(len(created))} created, ${'{:,d}'.format(len(updated))} updated, ${'{:,d}'.format(len(deleted))} deleted
|
||||
</h4>
|
||||
|
||||
% for instance, host_data in created[:max_display]:
|
||||
|
@ -103,7 +103,7 @@
|
|||
</table>
|
||||
% endfor
|
||||
% if len(created) > max_display:
|
||||
<h5>${model} - there were ${len(created) - max_display} other additions which are not shown here</h5>
|
||||
<h5>${model} - there were ${'{:,d}'.format(len(created) - max_display)} other additions which are not shown here</h5>
|
||||
% endif
|
||||
|
||||
% for instance, local_data, host_data in updated[:max_display]:
|
||||
|
@ -128,7 +128,7 @@
|
|||
</table>
|
||||
% endfor
|
||||
% if len(updated) > max_display:
|
||||
<h5>${model} - there were ${len(updated) - max_display} other updates which are not shown here</h5>
|
||||
<h5>${model} - there were ${'{:,d}'.format(len(updated) - max_display)} other updates which are not shown here</h5>
|
||||
% endif
|
||||
|
||||
% for instance, local_data in deleted[:max_display]:
|
||||
|
@ -153,7 +153,7 @@
|
|||
</table>
|
||||
% endfor
|
||||
% if len(deleted) > max_display:
|
||||
<h5>${model} - there were ${len(deleted) - max_display} other deletions which are not shown here</h5>
|
||||
<h5>${model} - there were ${'{:,d}'.format(len(deleted) - max_display)} other deletions which are not shown here</h5>
|
||||
% endif
|
||||
|
||||
% endfor
|
||||
|
|
Loading…
Reference in a new issue