diff options
author | Tobias Kunze <r@rixx.de> | 2019-06-17 16:54:55 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-06 13:27:46 +0200 |
commit | 4a954cfd11a5d034491f87fcbc920eb97a302bb3 (patch) | |
tree | 1c92caae5d8a9b33c51ddd74b4b2061248f3915f /docs/topics/forms/modelforms.txt | |
parent | addabc492bdc0191ac95d59ec34b56b34086ebb9 (diff) | |
download | django-4a954cfd11a5d034491f87fcbc920eb97a302bb3.tar.gz |
Fixed #30573 -- Rephrased documentation to avoid words that minimise the involved difficulty.
This patch does not remove all occurrences of the words in question.
Rather, I went through all of the occurrences of the words listed
below, and judged if they a) suggested the reader had some kind of
knowledge/experience, and b) if they added anything of value (including
tone of voice, etc). I left most of the words alone. I looked at the
following words:
- simply/simple
- easy/easier/easiest
- obvious
- just
- merely
- straightforward
- ridiculous
Thanks to Carlton Gibson for guidance on how to approach this issue, and
to Tim Bell for providing the idea. But the enormous lion's share of
thanks go to Adam Johnson for his patient and helpful review.
Diffstat (limited to 'docs/topics/forms/modelforms.txt')
-rw-r--r-- | docs/topics/forms/modelforms.txt | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index d8b137f624..56ab59fda2 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -389,9 +389,8 @@ you've manually saved the instance produced by the form, you can invoke >>> f.save_m2m() Calling ``save_m2m()`` is only required if you use ``save(commit=False)``. -When you use a simple ``save()`` on a form, all data -- including -many-to-many data -- is saved without the need for any additional method calls. -For example: +When you use a ``save()`` on a form, all data -- including many-to-many data -- +is saved without the need for any additional method calls. For example: .. code-block:: python @@ -731,8 +730,8 @@ to make:: >>> from myapp.models import Book >>> BookForm = modelform_factory(Book, fields=("author", "title")) -This can also be used to make simple modifications to existing forms, for -example by specifying the widgets to be used for a given field:: +This can also be used to make modifications to existing forms, for example by +specifying the widgets to be used for a given field:: >>> from django.forms import Textarea >>> Form = modelform_factory(Book, form=BookForm, @@ -755,8 +754,8 @@ Model formsets .. class:: models.BaseModelFormSet Like :doc:`regular formsets </topics/forms/formsets>`, Django provides a couple -of enhanced formset classes that make it easy to work with Django models. Let's -reuse the ``Author`` model from above:: +of enhanced formset classes to make working with Django models more +convenient. Let's reuse the ``Author`` model from above:: >>> from django.forms import modelformset_factory >>> from myapp.models import Author @@ -786,8 +785,8 @@ with the ``Author`` model. It works just like a regular formset:: :func:`~django.forms.models.modelformset_factory` uses :func:`~django.forms.formsets.formset_factory` to generate formsets. This - means that a model formset is just an extension of a basic formset that - knows how to interact with a particular model. + means that a model formset is an extension of a basic formset that knows + how to interact with a particular model. Changing the queryset --------------------- @@ -952,7 +951,7 @@ extra forms displayed. Also, ``extra=0`` doesn't prevent creation of new model instances as you can :ref:`add additional forms with JavaScript <understanding-the-managementform>` -or just send additional POST data. Formsets `don't yet provide functionality +or send additional POST data. Formsets `don't yet provide functionality <https://code.djangoproject.com/ticket/26142>`_ for an "edit only" view that prevents creation of new instances. |