Description

using latest wingware IDE which always reports UnboundLocalError exceptions by its default preferences, immediatelly during first application access to started devserver I discovered this small waste annoyance in code - I had ignored this error location according to this thread:​http://groups.google.com/group/django-developers/browse_thread/thread/a5432ea21c40b667#,
but today it occured again during debugging deeper in this code, so I decided to report it with quick patch.
IMHO its better to have this ugly annoyance solved.

There is no bug in Django here. Certainly the variable is potentially used unbounded and we handle that case on the very next line, which is fine.

Ok :), it's only "first impression issue" while using ide with this exceptions forced by defaults. After many hours of debugging, this is only one place where something like this occured for me. Hope for 1.1 soon anyway :) thanks for support