edcrewe/django-csvimport — Issue #4: command line error
Author: edcrewe
Created: 2011-10-18 18:37:39+00:00
State: open

Hi,

I get the attached error after every import. Even if the import is successful from the command line

Notes:

1) It seem to input False for a boolean field you need to leave this field empty. A zero does not work.

2) Also you cannot enter a blank value for a PositiveSmallIntegerField, it has to be a zero.

Tessa

--
Tessa Alexander

Traceback (most recent call last):
File "./django-admin.py", line 6, in
management.execute_from_command_line()
File "/usr/local/projects/dbms/lib/cmtsa/beta/lib/python2.6/site-packages/django/core/management/__init__.py", line 429, in execute_from_command_line
utility.execute()
File "/usr/local/projects/dbms/lib/cmtsa/beta/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/projects/dbms/lib/cmtsa/beta/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/projects/dbms/lib/cmtsa/beta/lib/python2.6/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/projects/dbms/lib/cmtsa/beta/lib/python2.6/site-packages/django/core/management/base.py", line 322, in handle
label_output = self.handle_label(label, **options)
File "/usr/local/projects/dbms/lib/cmtsa/beta/src/django-csvimport/csvimport/management/commands/csvimport.py", line 73, in handle_label
save_csvimport(self.props)
File "/usr/local/projects/dbms/lib/cmtsa/beta/src/django-csvimport/csvimport/management/commands/csvimport.py", line 20, in save_csvimport
from csvimport.models import CSVImport