"Add Master Product" is not working sometimes

Create issue
Issue #67 resolved
Former user created an issue

Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, callback_args, callback_kwargs) File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin 55. return view_func(request, *args, kwargs) File "/usr/lib/python2.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 39. response = view_func(request, args, **kwargs) File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/main.py" in add_stage 254. new_object = manipulator.save(new_data) File "/usr/lib/python2.4/site-packages/django/db/models/manipulators.py" in save 108. new_object.save() File "/home/grey/src/satchmo/../satchmo/product/models.py" in save 256. self.create_subitems() File "/home/grey/src/satchmo/../satchmo/product/models.py" in create_subitems 210. for opt in self.option_group.all(): File "/usr/lib/python2.4/site-packages/django/db/models/fields/related.py" in get 453. target_col_name=qn(self.field.m2m_reverse_name()) File "/usr/lib/python2.4/site-packages/django/db/models/fields/related.py" in init 279. raise ValueError("%r instance needs to have a primary key value before a many-to-many relationship can be used." % model)

ValueError at /admin/product/item/add/ <class 'satchmo.product.models.OptionGroup'> instance needs to have a primary key value before a many-to-many relationship can be used.

Reported by imgrey

Comments (5)

  1. Log in to comment