'Test that deleting a translation sets the corresponding FK to NULL,
if it was the only translation for this field.'

def test_delete_set_null(self):

    obj = self.TranslatedModel.objects.get(id=1)
    trans_id = obj.description.id
    eq_(Translation.objects.filter(id=trans_id).count(), 1)
    obj.description.delete()
    obj = self.TranslatedModel.objects.get(id=1)
    eq_(obj.description_id, None)
    eq_(obj.description, None)
    eq_(Translation.objects.filter(id=trans_id).exists(), False)
