mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Refs #36485 -- Removed double spaces after periods in sentences.
This commit is contained in:
parent
01a460f23e
commit
4286a23df6
80 changed files with 310 additions and 306 deletions
|
|
@ -306,8 +306,8 @@ We'll deal with this problem in the next section.
|
|||
.. note::
|
||||
|
||||
If you get a 404 when requesting ``/books/acme/``, check to ensure you
|
||||
actually have a Publisher with the name 'ACME Publishing'. Generic
|
||||
views have an ``allow_empty`` parameter for this case. See the
|
||||
actually have a Publisher with the name 'ACME Publishing'. Generic
|
||||
views have an ``allow_empty`` parameter for this case. See the
|
||||
:doc:`class-based-views reference</ref/class-based-views/index>` for more
|
||||
details.
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ Notes:
|
|||
Model forms
|
||||
===========
|
||||
|
||||
Generic views really shine when working with models. These generic
|
||||
Generic views really shine when working with models. These generic
|
||||
views will automatically create a :class:`~django.forms.ModelForm`, so long as
|
||||
they can work out which model class to use:
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ they can work out which model class to use:
|
|||
|
||||
Model form views provide a
|
||||
:meth:`~django.views.generic.edit.ModelFormMixin.form_valid` implementation
|
||||
that saves the model automatically. You can override this if you have any
|
||||
that saves the model automatically. You can override this if you have any
|
||||
special requirements; see below for examples.
|
||||
|
||||
You don't even need to provide a ``success_url`` for
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ And the view::
|
|||
If the view is accessed from a ``GET`` request, an object list is returned in
|
||||
the response (using the ``book_list.html`` template). But if the client issues
|
||||
a ``HEAD`` request, the response has an empty body and the ``Last-Modified``
|
||||
header indicates when the most recent book was published. Based on this
|
||||
header indicates when the most recent book was published. Based on this
|
||||
information, the client may or may not download the full object list.
|
||||
|
||||
.. _async-class-based-views:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue