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

During import, table id will not be auto-incremented (#59 - followup) #150

Closed
sdillinger opened this issue Oct 1, 2014 · 1 comment
Closed
Labels
stale Stale bot

Comments

@sdillinger
Copy link

Previous issue is closed.

I have the similar problem as in issue #59. Importing data when id=auto-increment. Django 1.7

Following the advice, I added an empty 'id' column to my CSV. Now I get:

Line number: 1 - 'NoneType' object has no attribute 'id'
Traceback (most recent call last):
File "F:\dev\lib\site-packages\import_export\resources.py", line 337, in import_data
self.import_obj(instance, row, real_dry_run)
File "F:\dev\lib\site-packages\import_export\resources.py", line 203, in import_obj
self.import_field(field, obj, data)
AttributeError: 'NoneType' object has no attribute 'id'

@stale
Copy link

stale bot commented Feb 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale bot label Feb 11, 2019
@stale stale bot closed this as completed Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale bot
Projects
None yet
Development

No branches or pull requests

1 participant