__all__ = ['OrderedModel', 'OrderedModelAdmin']

from models import OrderedModel
from admin import OrderedModelAdmin

from .models import OrderedModel
from .admin import OrderedModelAdmin

__all__ = ['OrderedModel', 'OrderedModelAdmin']

try:
    from django.conf import settings
except ImportError:
    pass
else:
    if 'mptt' in settings.INSTALLED_APPS:
        from .mptt_models import OrderableMPTTModel
        from .mptt_admin import OrderedMPTTModelAdmin
        __all__ += ['OrderableMPTTModel', 'OrderedMPTTModelAdmin']

Make it easy importing of OrderableMPTTModel and OrderedMPTTModelAdmin in from orderedmodel module
Make it easy importing of OrderableMPTTModel and OrderedMPTTModelAdmin in from orderedmodel module

+ from .models import OrderedModel
+ from .admin import OrderedModelAdmin
+ 
  __all__ = ['OrderedModel', 'OrderedModelAdmin']
  
- from models import OrderedModel
+ try:
+     from django.conf import settings
+ except ImportError:
+     pass
+ else:
+     if 'mptt' in settings.INSTALLED_APPS:
+         from .mptt_models import OrderableMPTTModel
- from admin import OrderedModelAdmin
+         from .mptt_admin import OrderedMPTTModelAdmin
+         __all__ += ['OrderableMPTTModel', 'OrderedMPTTModelAdmin']
  
Make it easy importing of OrderableMPTTModel and OrderedMPTTModelAdmin in from orderedmodel module
## Code Before:
__all__ = ['OrderedModel', 'OrderedModelAdmin']

from models import OrderedModel
from admin import OrderedModelAdmin

## Instruction:
Make it easy importing of OrderableMPTTModel and OrderedMPTTModelAdmin in from orderedmodel module
## Code After:
from .models import OrderedModel
from .admin import OrderedModelAdmin

__all__ = ['OrderedModel', 'OrderedModelAdmin']

try:
    from django.conf import settings
except ImportError:
    pass
else:
    if 'mptt' in settings.INSTALLED_APPS:
        from .mptt_models import OrderableMPTTModel
        from .mptt_admin import OrderedMPTTModelAdmin
        __all__ += ['OrderableMPTTModel', 'OrderedMPTTModelAdmin']
