id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 3519,IndexError when creating related objects in admin,wiz,Adrian Holovaty,"I have a model with `ForeignKey(Entry, edit_inline=models.TABULAR)` field. When i try to edit the Entry object in admin and ask to create Topic object too, django throws and IndexError: {{{ Traceback (most recent call last): File ""/usr/lib/site-python/django/core/handlers/base.py"" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File ""/usr/lib/site-python/django/contrib/admin/views/decorators.py"" in _checklogin 55. return view_func(request, *args, **kwargs) File ""/usr/lib/site-python/django/views/decorators/cache.py"" in _wrapped_view_func 39. response = view_func(request, *args, **kwargs) File ""/usr/lib/site-python/django/contrib/admin/views/main.py"" in change_stage 329. new_object = manipulator.save(new_data) File ""/usr/lib/site-python/django/db/models/manipulators.py"" in save 163. if rel_new_data[related.opts.pk.name][0]: IndexError at /admin/news/entry/1/ string index out of range }}} {{{ POST data: ... topic.0.id: '' ... }}}",,closed,contrib.admin,dev,,invalid,edit_inline,,Accepted,1,0,1,1,0,0