← Back to team overview

ubuntu-bengali-manual team mailing list archive

[Bug 699692] Re: Copying team event fails

 

** Tags added: events

-- 
You received this bug notification because you are a member of Ubuntu
Bengali Manual, which is subscribed to loco-directory.
https://bugs.launchpad.net/bugs/699692

Title:
  Copying team event fails

Status in LoCo Directory:
  In Progress

Bug description:
  Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response
  100.                     response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/pymodules/python2.6/django/contrib/auth/decorators.py" in _wrapped_view
  25.                 return view_func(request, *args, **kwargs)
File "/home/chris/Dropbox/Projects/loco-directory/loco-directory/loco_directory/events/views.py" in team_event_copy
  246.             form = TeamEventForm(instance=team_event, teams=team_event.teams.all())
File "/usr/lib/pymodules/python2.6/django/db/models/fields/related.py" in __get__
  716.             reverse=False
File "/usr/lib/pymodules/python2.6/django/db/models/fields/related.py" in __init__
  480.                 raise ValueError("%r instance needs to have a primary key value before a many-to-many relationship can be used." % instance.__class__.__name__)

Exception Type: ValueError at /events/team/626/copy/
Exception Value: 'TeamEvent' instance needs to have a primary key value before a many-to-many relationship can be used.





References