Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.10 support: AttributeError: module 'django.db.models' has no attribute 'SubfieldBase' #35

Closed
m-aciek opened this issue Aug 9, 2016 · 1 comment
Labels

Comments

@m-aciek
Copy link

m-aciek commented Aug 9, 2016

Package is currently not compatibile with Django 1.10:

    Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7fb1f340a598>
    Traceback (most recent call last):
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
        fn(*args, **kwargs)
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 113, in inner_run
        autoreload.raise_last_exception()
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
        six.reraise(*_exception)
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
        raise value.with_traceback(tb)
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
        fn(*args, **kwargs)
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/django/__init__.py", line 27, in setup
        apps.populate(settings.INSTALLED_APPS)
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/django/apps/registry.py", line 108, in populate
        app_config.import_models(all_models)
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/django/apps/config.py", line 199, in import_models
        self.models_module = import_module(models_module_name)
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 986, in _gcd_import
      File "<frozen importlib._bootstrap>", line 969, in _find_and_load
      File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 662, in exec_module
      File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/dynamic_forms/models.py", line 18, in <module>
        from dynamic_forms.fields import TextMultiSelectField
      File "/home/maciek/.virtualenvs/ankiety/lib/python3.5/site-packages/dynamic_forms/fields.py", line 13, in <module>
        class TextMultiSelectField(six.with_metaclass(models.SubfieldBase,
    AttributeError: module 'django.db.models' has no attribute 'SubfieldBase'
@MarkusH MarkusH added the bug label Aug 15, 2016
@MarkusH
Copy link
Owner

MarkusH commented Aug 15, 2016

Fixed in v0.5.2

@MarkusH MarkusH closed this as completed Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants