Django

Code

Ticket #6930 (closed: fixed)

Opened 5 months ago

Last modified 5 months ago

Inline extra = 0 raises undefined error

Reported by: Jurian Botha <jurianbotha@gmail.com> Assigned to: nobody
Milestone: Component: Admin interface
Version: newforms-admin Keywords: inline admin Media
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

When an the 'extra' property of an Inline admin object is set to 0 the following error is raised:

global name 'Media' is not defined

Attachments

Change History

03/31/08 09:50:37 changed by Jurian Botha <jurianbotha@gmail.com>

  • needs_better_patch changed.
  • summary changed from Inline extra = 0 = undefined error to Inline extra = 0 raises undefined error.
  • needs_tests changed.
  • needs_docs changed.

03/31/08 10:23:01 changed by hambaloney

Note, this error only occurs if there are no inlined objects (e.g. adding a new object).

03/31/08 10:38:35 changed by brosner

  • status changed from new to closed.
  • resolution set to fixed.

(In [7393]) newforms-admin: Fixed #6390 -- Added a missing import in django/newforms/formsets.py. Thanks, Jurian Botha.

03/31/08 10:41:00 changed by brosner

That ticket number in the changeset message is incorrect, FYI.


Add/Change #6930 (Inline extra = 0 raises undefined error)




Change Properties
Action