class SuppressDeprecated(logging.Filter):

    def filter(self, record):
        WARNINGS_TO_SUPPRESS = ['RemovedInDjango18Warning',
            'RemovedInDjango19Warning']
How to suppress the deprecation warnings in Django?