Skip to content

Commit

Permalink
Delete hassuggestion failures on upgrade.
Browse files Browse the repository at this point in the history
This fixes bug 2425.
  • Loading branch information
friedelwolff committed Aug 10, 2012
1 parent 6041a24 commit c61b421
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pootle/apps/pootle_misc/dbupdate.py
Expand Up @@ -249,6 +249,9 @@ def update_tables_22000():
table_name = QualityCheck._meta.db_table
field = QualityCheck._meta.get_field('category')
db.add_column(table_name, field.name, field)
# Delete all 'hassuggestion' failures, since we don't actually use them
# See bug 2412.
QualityCheck.objects.filter(name="hassuggestion").delete()

from pootle_statistics.models import Submission
table_name = Submission._meta.db_table
Expand Down

0 comments on commit c61b421

Please sign in to comment.