<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> from django import dispatch as django_dispatch <EOL> from django . db . models import signals as django_signals <EOL> from services . configuration . models import channels as channel_models <EOL> from services . scheduling . models import compatibility as compatibility_models <EOL> @ django_dispatch . receiver ( <EOL> django_signals . post_save , <EOL> sender = channel_models . GroundStationChannel <EOL> ) <EOL> def groundstation_channel_saved ( sender , instance , created , raw , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if raw : <EOL> return <EOL> add , remove = compatibility_models . ChannelCompatibility . objects . diff_gs ( <EOL> instance <EOL> ) <EOL> compatibility_models . ChannelCompatibility . objects . patch_gs ( <EOL> instance , add , remove <EOL> ) <EOL> @ django_dispatch . receiver ( <EOL> django_signals . post_save , <EOL> sender = channel_models . SpacecraftChannel <EOL> ) <EOL> def spacecraft_channel_saved ( sender , instance , created , raw , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if raw : <EOL> return <EOL> add , remove = compatibility_models . ChannelCompatibility . objects . diff_sc ( <EOL> instance <EOL> ) <EOL> compatibility_models . ChannelCompatibility . objects . patch_sc ( <EOL> instance , add , remove <EOL> ) </s>
