Template error:
In template /Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/oscar/templates/oscar/dashboard/partials/product_images.html, error at line 6
build_attrs() got an unexpected keyword argument 'type' 1 :
2 : {% for field in form %}
3 : {% if field.is_hidden %}
4 : {{ field }}
5 : {% elif "original" in field.id_for_label %}
6 :
{{ field }}
7 : {% for error in field.errors %}
8 :
9 :
{{ error }}
10 :
11 : {% endfor %}
12 : {% else %}
13 : {{ field.label_tag }}
14 : {{ field }}
15 : {% for error in field.errors %}
16 :
Traceback:
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
response = get_response(request)
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
Environment:
Request Method: GET Request URL: http://127.0.0.1:8000/dashboard/catalogue/products/create/shi-wu/
Django Version: 1.11 Python Version: 3.6.1 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.flatpages', 'widget_tweaks', 'oscar', 'oscar.apps.analytics', 'oscar.apps.checkout', 'oscar.apps.address', 'oscar.apps.shipping', 'oscar.apps.catalogue', 'oscar.apps.catalogue.reviews', 'oscar.apps.partner', 'oscar.apps.basket', 'oscar.apps.payment', 'oscar.apps.offer', 'oscar.apps.order', 'oscar.apps.customer', 'oscar.apps.promotions', 'oscar.apps.search', 'oscar.apps.voucher', 'oscar.apps.wishlists', 'oscar.apps.dashboard', 'oscar.apps.dashboard.reports', 'oscar.apps.dashboard.users', 'oscar.apps.dashboard.orders', 'oscar.apps.dashboard.promotions', 'oscar.apps.dashboard.catalogue', 'oscar.apps.dashboard.offers', 'oscar.apps.dashboard.partners', 'oscar.apps.dashboard.pages', 'oscar.apps.dashboard.ranges', 'oscar.apps.dashboard.reviews', 'oscar.apps.dashboard.vouchers', 'oscar.apps.dashboard.communications', 'oscar.apps.dashboard.shipping', 'haystack', 'treebeard', 'sorl.thumbnail', 'django_tables2'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'oscar.apps.basket.middleware.BasketMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware']
Template error: In template /Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/oscar/templates/oscar/dashboard/partials/product_images.html, error at line 6 build_attrs() got an unexpected keyword argument 'type' 1 :
9 :- {{ error }}
10 :
11 : {% endfor %} 12 : {% else %} 13 : {{ field.label_tag }} 14 : {{ field }} 15 : {% for error in field.errors %} 16 :Traceback:
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/response.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/response.py" in rendered_content
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/backends/django.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in _render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in _render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in _render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in _render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/defaulttags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/loader_tags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in _render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/defaulttags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/defaulttags.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_annotated
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/template/base.py" in render_value_in_context
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/utils/encoding.py" in force_text
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/utils/html.py" in
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/forms/boundfield.py" in str
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/django/forms/boundfield.py" in as_widget
File "/Users/myang/workspaces/oscar_prj/env/lib/python3.6/site-packages/oscar/forms/widgets.py" in render
Exception Type: TypeError at /dashboard/catalogue/products/create/shi-wu/ Exception Value: build_attrs() got an unexpected keyword argument 'type'