Bug #1558 Deleting posts on dev leads to error
Pulled code from 1.8 version of reversion and tweaked it to fit current (1.6.6)
version
    from etianen/django-reversion commit
    f9574a3ac7608d494d42a4cd2d86c50ebeab18f5