Opened 19 years ago

Closed 19 years ago

#887 closed defect (fixed)

save manipulator throws UnboundLocalError when saving new files

Reported by: mcroydon Owned by: Jacob
Component: Metasystem Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When saving new files, line 1636 of /home/code/django/core/meta/__init__.py sometimes throws the following error:
UnboundLocalError: local variable 'old_rel_obj' referenced before assignment

This can be fixed by assinging old_rel_obj to None in all cases (see patch).

Attachments (1)

django.core.meta.init.diff (762 bytes ) - added by mcroydon 19 years ago.
Move old_rel_object outside the if clause so it exists to be checked in all cases.

Download all attachments as: .zip

Change History (2)

by mcroydon, 19 years ago

Attachment: django.core.meta.init.diff added

Move old_rel_object outside the if clause so it exists to be checked in all cases.

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

Fixed in [1434].

Note: See TracTickets for help on using tickets.
Back to Top