Hello, I have not been able to resolve this issue with people's help on irc, so I'm hoping to reach a broader audience.
Dependencies: - reset all my databases - running mod_python + apache (restarted more than once :) - svn trunk (a day old at the time of writing) Problem: domain/admin/auth/user/1/ (this is the built-in admin, with the built-in user class) Error: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 74. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin 54. return view_func(request, *args, **kwargs) File "/usr/local/lib/python2.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 40. response = view_func(request, *args, **kwargs) File "usr/local/lib/python2.4/site-packages/django/contrib/admin/views/main.py" in change_stage 316. manipulator = model.ChangeManipulator(object_id) File "/usr/local/lib/python2.4/site-packages/django/db/models/manipulators.py" in __init__ 272. super(AutomaticChangeManipulator, self).__init__(follow=follow) File "/usr/local/lib/python2.4/site-packages/django/db/models/manipulators.py" in __init__ 75. self.fields.extend(f.get_manipulator_fields(self.opts, self, self.change, fol)) File "/usr/local/lib/python2.4/site-packages/django/db/models/related.py" in get_manipulator_fields 112. if follow.get(f.name, False): AttributeError at /admin/auth/user/1/ 'bool' object has no attribute 'get' Second Problem (I'm not sure, but I think it may be related to the previous): In a custom manipulator, I'm saving a M2M. model: recipients = models.ManyToManyField(User, related_name="recipients") manipulator - in .save() for n in data['recipients']: e.recipients.add(User.objects.get(pk=n)) part of view, which passes data to manipulator - which I simplified for debugging: data['recipients'] = [User.objects.get(username='igroupsadmin').id] 'igroupsadmin' is a valid user, with an ID (I checked the database entry) Error during manipulator.save(): Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 74. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.4/site-packages/django/contrib/auth/decorators.py" in _checklogin 14. return view_func(request, *args, **kwargs) File "/srv/igroups30/igroups/igroups/emails/views.py" in send_group_email 84. email = manipulator.save(data) File "/srv/igroups30/igroups/igroups/emails/views.py" in save 46. e.recipients.add(User.objects.get(pk=n)) File "/usr/local/lib/python2.4/site-packages/django/db/models/fields/related.py" in __get__ 413. target_col_name=qn(self.field.m2m_reverse_name()) File "/usr/local/lib/python2.4/site-packages/django/db/models/fields/related.py" in __init__ 252. raise ValueError("%r instance needs to have a primary key value before a many-to-many relationship can be used." % model) ValueError at /iit/2006/summer/ipro338/email/send/ <class 'django.contrib.auth.models.User'> instance needs to have a primary key value before a many-to-many relationship can be used. Any and all suggestions welcome, even if only for the second problem (I can live without admin, but I can't live without saving users). =) Thanks in advance, Norbert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---