diff options
Diffstat (limited to 'src/mailman/database/model.py')
| -rw-r--r-- | src/mailman/database/model.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mailman/database/model.py b/src/mailman/database/model.py index 173659269..eec88936f 100644 --- a/src/mailman/database/model.py +++ b/src/mailman/database/model.py @@ -49,11 +49,14 @@ class ModelMeta(PropertyPublisherMeta): @staticmethod def _reset(store): + from mailman.config import config + config.db._pre_reset(store) # Make sure this is deterministic, by sorting on the storm table name. classes = sorted(ModelMeta._class_registry, key=attrgetter('__storm_table__')) for model_class in classes: store.find(model_class).remove() + config.db._post_reset(store) |
