Skip to content

TypeError at /datawizard/ #13

@mureiken

Description

@mureiken

Hi,

I am trying to import an XML file.

I am getting this error

Request Method: | POST
Request URL: | http://127.0.0.1:8000/datawizard/
Django Version: | 2.0.6
Exception Type: | TypeError
Exception Value: | int() argument must be a string, a bytes-like object or a number, not 'ContentType'
Exception Location: | /Applications/Django/venv/lib/python3.6/site-packages/django/db/models/fields/init.py in get_prep_value, line 947
Python Executable: | /Applications/Django/venv/bin/python
Python Version: | 3.6.4
.....
.....
Error during template rendering
In template /Applications/Django/myvenv3/lib/python3.6/site-packages/rest_framework/templates/rest_framework/horizontal/select.html, error at line 15

` {% if field.allow_null or field.allow_blank %} -------- {% endif %} {% for select in field.iter_options %} # This is line 15 {% if select.start_option_group %} {% elif select.end_option_group %}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions