Django

Code

Ticket #6982 (closed: fixed)

Opened 1 month ago

Last modified 1 month ago

modelforms incomplete example code

Reported by: Rho <darkrho@gmail.com> Assigned to: nobody
Component: Documentation Version: SVN
Keywords: ModelForm, notdefined, example Cc:
Triage Stage: Unreviewed Has patch: 0
Needs documentation: Needs tests:
Patch needs improvement:

Description

Full example fails running with:

<type 'exceptions.NameError'>: name 'ModelForm' is not defined

The solution is to add at top:

from django.newforms.models import ModelForm

Attachments

Change History

04/09/08 23:05:38 changed by ubernostrum

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

(In [7411]) Fixed #6982; added an import statement to example in docs/modelforms.txt for the ModelForm? class


Add/Change #6982 (modelforms incomplete example code)




Change Properties
Action