AttributeError 'LegacyFallbackStorage' object has no attribute 'append'

Ross Brattain ross.b.brattain at intel.com
Sat Dec 18 12:17:58 EST 2010


On Thu, 16 Dec 2010 15:00:23 -0800
Jeremy Kerr <jk at ozlabs.org> wrote:

> Hi Ross,
> 
> > Has anyone seen this error.  I upgraded from an old patchwork running on
> > Fedora 7 to openSUSE 11.3 running python-django-1.2.3-6.3. 
> > AttributeError at
> > 'LegacyFallbackStorage' object has no attribute 'append'
> 
> No, I haven't seen this one before. Could you trigger the error again, click 
> on the 'switch to copy-and-paste view' link, then re-post the error message?
> 
> Cheers,
> 
> 
> Jeremy

After I created a user and logged in I get this error:

This is on a database that was migrated from mysql to postgres using dumpdata and loaddata with YAML.  
At the same time patchwork was upgraded to the latest git version.

Environment:

Request Method: GET
Django Version: 1.2.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'patchwork',
 'registration']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
  100.                     response = callback(request, *callback_args, **callback_kwargs)
File "/srv/patchwork/apps/patchwork/views/patch.py" in list
  132.             view_args = {'project_id': project.linkname})
File "/srv/patchwork/apps/patchwork/views/__init__.py" in generic_list
  64.             project in request.user.get_profile().maintainer_projects.all()):
File "/usr/lib/python2.6/site-packages/django/contrib/auth/models.py" in get_profile
  370.                 self._profile_cache = model._default_manager.using(self._state.db).get(user__id__exact=self.id)
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in get
  341.                     % self.model._meta.object_name)

Exception Type: DoesNotExist at
Exception Value: UserProfile matching query does not exist.


More information about the Patchwork mailing list