def retrieve_old_notifications(self):
        """
        Retrieve notifications older than X days, where X is specified in settings
        """

        date = ago(days=DELETE_OLD)

        return Notification.objects.filter(added__lte=date)
def retrieve_old_notifications ( self ) : date = ago ( days = DELETE_OLD ) return Notification . objects . filter ( added__lte = date )
Retrieve notifications older than X days, where X is specified in settings