AttributeError 'LegacyFallbackStorage' object has no attribute 'append'

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

On Mon, 20 Dec 2010 17:39:46 -0800
Jeremy Kerr <jk at> 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.


Request Method: POST
Django Version: 1.2.3
Python Version: 2.6.5
Installed Applications:
Installed Middleware:

File "/usr/lib/python2.6/site-packages/django/core/handlers/" in get_response
  100.                     response = callback(request, *callback_args, **callback_kwargs)
File "/srv/patchwork/apps/patchwork/views/" in patch
  86.                 context.add_message('Patch updated')
File "/srv/patchwork/apps/patchwork/" in add_message
  86.         self['messages'].append(message)

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


More information about the Patchwork mailing list