def __new__(mcs, name, bases, attrs):
        """Create signals."""
        cls = super(BaseSignalModel, mcs).__new__(mcs, name, bases, attrs)
        cls.pre_save = Signal()
        cls.pre_delete = Signal()
        cls.post_delete = Signal()
        cls.post_save = Signal()

        if cls._meta.db_table and cls._meta.db_table != 'model':
            mcs.models.append(cls)

        cls._meta.read_slaves = getattr(cls._meta, 'read_slaves', None)

        return cls
def __new__ ( mcs , name , bases , attrs ) : cls = super ( BaseSignalModel , mcs ) . __new__ ( mcs , name , bases , attrs ) cls . pre_save = Signal ( ) cls . pre_delete = Signal ( ) cls . post_delete = Signal ( ) cls . post_save = Signal ( ) if cls . _meta . db_table and cls . _meta . db_table != 'model' : mcs . models . append ( cls ) cls . _meta . read_slaves = getattr ( cls . _meta , 'read_slaves' , None ) return cls
Create signals.