Fix tag counts (#692)
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 22 Jun 2010 14:09:06 +0000 (16:09 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 22 Jun 2010 14:23:33 +0000 (16:23 +0200)
commitf1ec080b394326e35074c57e682789176cd3f244
tree5f4793134d49854a441e7ca03aa706666de7bc18
parent65c55a07a1ed0605f8059809281ca69320363964
Fix tag counts (#692)

Cache global tag counts in book_count
Clean TagRelation table, don't leave orphaned relations
Remove theme tags from books
Reset cache fields on tags changes
Some tests
Minor fixes
apps/catalogue/forms.py
apps/catalogue/migrations/0009_chg_book_count__heavy_cleaning.py [new file with mode: 0644]
apps/catalogue/models.py
apps/catalogue/templatetags/catalogue_tags.py
apps/catalogue/tests/book_import.py
apps/catalogue/tests/tags.py
apps/catalogue/views.py
apps/newtagging/models.py
wolnelektury/templates/catalogue/main_page.html
wolnelektury/templates/catalogue/user_shelves.html