Opened 20 years ago
Closed 20 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)
Note:
See TracTickets
for help on using tickets.
Move old_rel_object outside the if clause so it exists to be checked in all cases.