Django

Code

Changeset 8022

Show
Ignore:
Timestamp:
07/21/08 11:56:52 (1 month ago)
Author:
gwilson
Message:

Refs #7864 -- Corrected more instances of "newforms" in the docs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/admin.txt

    r8010 r8022  
    495495apply as `regular media definitions on forms`_. 
    496496 
    497 .. _regular media definitions on forms: ../newforms/#media 
     497.. _regular media definitions on forms: ../forms/#media 
    498498 
    499499``InlineModelAdmin`` objects 
     
    559559to the initial forms. See the `formsets documentation`_ for more information. 
    560560 
    561 .. _formsets documentation: ../newforms/#formsets 
     561.. _formsets documentation: ../forms/#formsets 
    562562 
    563563``max_num`` 
  • django/trunk/docs/forms.txt

    r8020 r8022  
    21922192form:: 
    21932193 
    2194     >>> from django import newforms as forms 
     2194    >>> from django import forms 
    21952195    >>> class ArticleForm(forms.Form): 
    21962196    ...     title = forms.CharField() 
     
    22002200a formset of out of an ``ArticleForm`` you would do:: 
    22012201 
    2202     >>> from django.newforms.formsets import formset_factory 
     2202    >>> from django.forms.formsets import formset_factory 
    22032203    >>> ArticleFormSet = formset_factory(ArticleForm) 
    22042204 
     
    23092309    Traceback (most recent call last): 
    23102310    ... 
    2311     django.newforms.util.ValidationError: [u'ManagementForm data is missing or has been tampered with'] 
     2311    django.forms.util.ValidationError: [u'ManagementForm data is missing or has been tampered with'] 
    23122312 
    23132313It is used to keep track of how many form instances are being displayed. If 
     
    23212321is where you define your own validation that deals at the formset level:: 
    23222322 
    2323     >>> from django.newforms.formsets import BaseFormSet 
     2323    >>> from django.forms.formsets import BaseFormSet 
    23242324     
    23252325    >>> class BaseArticleFormSet(BaseFormSet): 
  • django/trunk/docs/generic_views.txt

    r8020 r8022  
    818818 
    819819For more on pagination, read the `pagination documentation`_. 
    820           
     820 
    821821.. _`pagination documentation`: ../pagination/ 
    822822 
     
    910910 
    911911``django.views.generic.create_update.create_object`` and 
    912 ``django.views.generic.create_update.update_object`` now use `newforms`_ to 
    913 build and display the form. 
    914  
    915 .. _newforms: ../newforms/ 
     912``django.views.generic.create_update.update_object`` now use the new `forms 
     913library`_ to build and display the form. 
     914 
     915.. _forms library: ../forms/ 
    916916 
    917917``django.views.generic.create_update.create_object`` 
     
    928928 
    929929      If you provide ``form_class``, it should be a 
    930       ``django.newforms.ModelForm`` subclass.  Use this argument when you need 
     930      ``django.forms.ModelForm`` subclass.  Use this argument when you need 
    931931      to customize the model's form.  See the `ModelForm docs`_ for more 
    932932      information. 
     
    974974In addition to ``extra_context``, the template's context will be: 
    975975 
    976     * ``form``: A ``django.newforms.ModelForm`` instance representing the form 
     976    * ``form``: A ``django.forms.ModelForm`` instance representing the form 
    977977      for creating the object. This lets you refer to form fields easily in the 
    978978      template system. 
     
    989989 
    990990.. _authentication system: ../authentication/ 
    991 .. _ModelForm docs: ../newforms/modelforms 
     991.. _ModelForm docs: ../forms/modelforms 
    992992.. _forms documentation: ../forms/ 
    993993 
     
    10061006 
    10071007      If you provide ``form_class``, it should be a 
    1008       ``django.newforms.ModelForm`` subclass.  Use this argument when you need 
     1008      ``django.forms.ModelForm`` subclass.  Use this argument when you need 
    10091009      to customize the model's form.  See the `ModelForm docs`_ for more 
    10101010      information. 
     
    10641064In addition to ``extra_context``, the template's context will be: 
    10651065 
    1066     * ``form``: A ``django.newforms.ModelForm`` instance representing the form 
     1066    * ``form``: A ``django.forms.ModelForm`` instance representing the form 
    10671067      for editing the object. This lets you refer to form fields easily in the 
    10681068      template system. 
     
    10751075          </form> 
    10761076 
    1077       See the `newforms documentation`_ for more information about using 
     1077      See the `forms documentation`_ for more information about using 
    10781078      ``Form`` objects in templates. 
    10791079 
  • django/trunk/docs/modelforms.txt

    r8020 r8022  
    385385``Author`` model from above:: 
    386386 
    387     >>> from django.newforms.models import modelformset_factory 
     387    >>> from django.forms.models import modelformset_factory 
    388388    >>> AuthorFormSet = modelformset_factory(Author) 
    389389 
     
    418418Alternatively, you can use a subclassing based approach:: 
    419419 
    420     from django.newforms.models import BaseModelFormSet 
     420    from django.forms.models import BaseModelFormSet 
    421421     
    422422    class BaseAuthorFormSet(BaseModelFormSet): 
     
    495495books of a specific author. Here is how you could accomplish this:: 
    496496 
    497     >>> from django.newforms.models import inlineformset_factory 
     497    >>> from django.forms.models import inlineformset_factory 
    498498    >>> BookFormSet = inlineformset_factory(Author, Book) 
    499499    >>> author = Author.objects.get(name=u'Orson Scott Card') 
  • django/trunk/docs/testing.txt

    r7913 r8022  
    865865 
    866866    ``form`` is the name the ``Form`` instance was given in the template 
    867     context. Note that this works only for ``newforms.Form`` instances, not 
     867    context. Note that this works only for ``forms.Form`` instances, not 
    868868    ``oldforms.Form`` instances. 
    869869