you should also add the check in the `if` statement farther above so that it doesnt get set in the db:

```
# If document is localizable and revision was approved and
            # user has permission, set the is_ready_for_localization value.
            if (doc.allows(request.user, 'mark_ready_for_l10n') and
                rev.is_approved):
```