Skip to content

Commit e1c0755

Browse files
Improve clarity of record_stats for serialization. (#1965)
1 parent 8402c4d commit e1c0755

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

debug_toolbar/panels/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ def record_stats(self, stats):
173173
"""
174174
Store data gathered by the panel. ``stats`` is a :class:`dict`.
175175
176-
Each call to ``record_stats`` updates the statistics dictionary.
176+
Each call to ``record_stats`` updates the store's data for
177+
the panel.
178+
179+
To support backwards compatibility, it will also update the
180+
panel's statistics dictionary.
177181
"""
178182
self.toolbar.stats.setdefault(self.panel_id, {}).update(stats)
179183
self.toolbar.store.save_panel(

0 commit comments

Comments
 (0)