masschallenge/django-accelerator

View on GitHub
accelerator/models/deferrable_modal.py

Summary

Maintainability
A
35 mins
Test Coverage
A
100%
import swapper
from accelerator_abstract.models import (
    BaseDeferrableModal,
)


class DeferrableModal(BaseDeferrableModal):
    class Meta(BaseDeferrableModal.Meta):
        swappable = swapper.swappable_setting(
            BaseDeferrableModal.Meta.app_label, 'DeferrableModal'
        )