# Path: rest_framework_tus/models.py
# def get_upload_model():
#     """
#     Returns the User model that is active in this project.
#     """
#     from django.apps import apps as django_apps
#     from .settings import TUS_UPLOAD_MODEL
#     try:
#         return django_apps.get_model(TUS_UPLOAD_MODEL)
#     except ValueError:
#         raise ImproperlyConfigured('UPLOAD_MODEL must be of the form \'app_label.model_name\'')
#     except LookupError:
#         raise ImproperlyConfigured('UPLOAD_MODEL refers to model \'%s\' that has not been installed' % TUS_UPLOAD_MODEL)


import factory
from rest_framework_tus.models import get_upload_model
# -*- coding: utf-8 -*-
from __future__ import unicode_literals




class UploadFactory(factory.DjangoModelFactory):
    class Meta:

# Path: rest_framework_tus/models.py
# def get_upload_model():
#     """
#     Returns the User model that is active in this project.
#     """
#     from django.apps import apps as django_apps
#     from .settings import TUS_UPLOAD_MODEL
#     try:
#         return django_apps.get_model(TUS_UPLOAD_MODEL)
#     except ValueError:
#         raise ImproperlyConfigured('UPLOAD_MODEL must be of the form \'app_label.model_name\'')
#     except LookupError:
#         raise ImproperlyConfigured('UPLOAD_MODEL refers to model \'%s\' that has not been installed' % TUS_UPLOAD_MODEL)


# Path: tests/tests/factories.py
import factory
from rest_framework_tus.models import get_upload_model

# -*- coding: utf-8 -*-
from __future__ import unicode_literals




class UploadFactory(factory.DjangoModelFactory):
    class Meta:

        model = get_upload_model()