diff options
Diffstat (limited to 'factory')
-rw-r--r-- | factory/__init__.py | 12 | ||||
-rw-r--r-- | factory/alchemy.py | 1 |
2 files changed, 9 insertions, 4 deletions
diff --git a/factory/__init__.py b/factory/__init__.py index 80eb6a8..843cf99 100644 --- a/factory/__init__.py +++ b/factory/__init__.py @@ -40,9 +40,6 @@ from .base import ( use_strategy, ) -# Backward compatibility; this should be removed soon. -from .mogo import MogoFactory -from .django import DjangoModelFactory from .faker import Faker from .declarations import ( @@ -84,3 +81,12 @@ from .helpers import ( post_generation, ) +# Backward compatibility; this should be removed soon. +from . import alchemy +from . import django +from . import mogo +from . import mongoengine + +MogoFactory = mogo.MogoFactory +DjangoModelFactory = django.DjangoModelFactory + diff --git a/factory/alchemy.py b/factory/alchemy.py index 6408393..20da6cf 100644 --- a/factory/alchemy.py +++ b/factory/alchemy.py @@ -19,7 +19,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from __future__ import unicode_literals -from sqlalchemy.sql.functions import max from . import base |