Code

Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#197 closed defect (fixed)

Adding a flatfile causes a traceback in sqlite3.py

Reported by: mmarshall Owned by: jacob
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by jacob)

Here is the taceback:

There's been an error:

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 63, in get_response
    return callback(request, **param_dict)

  File "/usr/lib/python2.4/site-packages/django/views/admin/main.py", line 765, in add_stage
    new_object = manipulator.save(new_data)

  File "/usr/lib/python2.4/site-packages/django/core/meta.py", line 87, in _curried
    return args[0](*(args[1:]+moreargs), **dict(kwargs.items() + morekwargs.items()))

  File "/usr/lib/python2.4/site-packages/django/core/meta.py", line 1464, in manipulator_save
    was_changed = getattr(new_object, 'set_%s' % f.name)(new_data.getlist(f.name))

  File "/usr/lib/python2.4/site-packages/django/core/meta.py", line 87, in _curried
    return args[0](*(args[1:]+moreargs), **dict(kwargs.items() + morekwargs.items()))

  File "/usr/lib/python2.4/site-packages/django/core/meta.py", line 922, in method_set_many_to_many
    cursor.executemany(sql, [(this_id, i) for i in ids_to_add])

  File "/usr/lib/python2.4/site-packages/django/core/db/base.py", line 20, in executemany
    result = self.cursor.executemany(sql, param_list)

  File "/usr/lib/python2.4/site-packages/django/core/db/backends/sqlite3.py", line 59, in executemany
    query = self.convert_query(query, len(params))

  File "/usr/lib/python2.4/site-packages/django/core/db/backends/sqlite3.py", line 64, in convert_query
    return query % tuple("?" * num_params)

TypeError: not enough arguments for format string

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by jacob

  • Description modified (diff)

comment:2 Changed 9 years ago by jacob

  • Status changed from new to assigned

comment:3 Changed 9 years ago by jacob

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [309]) Fixed #197 -- thanks for finding that, mmarshall

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.