<s> from django . db . models . signals import post_delete <EOL> from django . dispatch import receiver <EOL> from . mixins import ModelMixin <EOL> @ receiver ( post_delete ) <EOL> def delete_translations ( sender , instance , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if issubclass ( sender , ( ModelMixin , ) ) : <EOL> instance . _linguist . decider . objects . filter ( identifier = instance . linguist_identifier , <EOL> object_id = instance . pk ) . delete ( ) </s>
