add signal article_generator_pretaxonomy

invoked before categories and tags lists are created
useful when e.g. modifying the list of articles to be generated
so that removed articles are not leaked in categories or tags
This commit is contained in:
Ondrej Grover 2014-02-07 08:34:27 +01:00
commit 22762f2c16
3 changed files with 6 additions and 0 deletions

View file

@ -421,6 +421,8 @@ class ArticlesGenerator(Generator):
self.articles, self.translations = process_translations(all_articles)
signals.article_generator_pretaxonomy.send(self)
for article in self.articles:
# only main articles are listed in categories and tags
# not translations