Opened 17 years ago
Closed 17 years ago
#5358 closed (duplicate)
[newforms-admin] django.newforms.models.inline_formset does not do anything with fk_name arg
Reported by: | Antti Kaihola | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | newforms-admin |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There must be something wrong in
[source:/django/branches/newforms-admin/django/newforms/models.py django/newforms/models.py] function inline_formset().
If the fk_name
argument is not None
, the fk
variable never gets initialized but is still used on line 340.
Attachments (1)
Change History (4)
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 17 years ago
Summary: | [newforms-admin] uninitialized local variable in newforms.models.inline_formset() → [newforms-admin] django.newforms.models.inline_formset does not do anything with fk_name arg |
---|
comment:3 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closed as a duplicate of #5488. That ticket has a better description and a slightly more robust patch.
Note:
See TracTickets
for help on using tickets.
You're right. An else clause is needed around line 340 to deal with the case where fk_name is given. Thanks for the report.