AttributeError 'LegacyFallbackStorage' object has no attribute 'append'

Ross Brattain ross.b.brattain at intel.com
Wed Dec 22 10:40:25 EST 2010


On Mon, 20 Dec 2010 17:39:46 -0800
Jeremy Kerr <jk at ozlabs.org> wrote:

> Hi Ross,
> 
> > 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.
> 
> This error would indicate that the user you're logging-in as does not have a 
> corresponding userprofile. Did you create the user through the patchwork 
> interface, or the django admin? If you used the latter, you'll need to also 
> create a UserProfile for that user.
 
Yes.  This was the issue, I was logged in as root.  I logged in a a real user and it was fixed.

> However, this may not be the original problem; let me know how this goes, or 
> if you have further trouble.
> 

The original issue occurs when I try to set a patch to RFC.

I am wondering if Django 1.2.3 is not the correct version to use.

I did run all of the migration scripts in patchwork/lib/sql/migration.

Environment:

Request Method: POST
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 patch
  86.                 context.add_message('Patch updated')
File "/srv/patchwork/apps/patchwork/requestcontext.py" in add_message
  86.         self['messages'].append(message)

Exception Type: AttributeError at /patch/1543/
Exception Value: 'LegacyFallbackStorage' object has no attribute 'append'

Thanks,
Ross


More information about the Patchwork mailing list