diff -r 84ec6befeb13 docs/howto/static-files.txt
|
a
|
b
|
|
| 40 | 40 | |
| 41 | 41 | Here's the formal definition of the :func:`~django.views.static.serve` view: |
| 42 | 42 | |
| 43 | | .. function:: def serve(request, path, document_root, show_indexes=False): |
| | 43 | .. function:: def serve(request, path, document_root, show_indexes=False) |
| 44 | 44 | |
| 45 | 45 | To use it, just put this in your :ref:`URLconf <topics-http-urls>`:: |
| 46 | 46 | |
diff -r 84ec6befeb13 docs/releases/1.2.txt
|
a
|
b
|
|
| 351 | 351 | only time this should ever be an issue is if you were expecting printing the |
| 352 | 352 | ``repr`` of a ``BooleanField`` to print ``1`` or ``0``. |
| 353 | 353 | |
| 354 | | Changes to the interpretation of``max_num`` in FormSets |
| 355 | | ------------------------------------------------------- |
| | 354 | Changes to the interpretation of ``max_num`` in FormSets |
| | 355 | -------------------------------------------------------- |
| 356 | 356 | |
| 357 | 357 | As part of enhancements made to the handling of FormSets, the default |
| 358 | 358 | value and interpretation of the ``max_num`` parameter to the |
diff -r 84ec6befeb13 docs/topics/forms/modelforms.txt
|
a
|
b
|
|
| 674 | 674 | >>> [x.name for x in formset.get_queryset()] |
| 675 | 675 | [u'Charles Baudelaire', u'Paul Verlaine', u'Walt Whitman'] |
| 676 | 676 | |
| 677 | | If the value of ``max_num`` is geater than the number of existing related |
| | 677 | If the value of ``max_num`` is greater than the number of existing related |
| 678 | 678 | objects, up to ``extra`` additional blank forms will be added to the formset, |
| 679 | 679 | so long as the total number of forms does not exceed ``max_num``:: |
| 680 | 680 | |
diff -r 84ec6befeb13 docs/topics/pagination.txt
|
a
|
b
|
|
| 221 | 221 | ``Page`` objects |
| 222 | 222 | ================ |
| 223 | 223 | |
| 224 | | .. class:: Page(object_list, number, paginator): |
| | 224 | .. class:: Page(object_list, number, paginator) |
| 225 | 225 | |
| 226 | 226 | You usually won't construct :class:`Pages <Page>` by hand -- you'll get them |
| 227 | 227 | using :meth:`Paginator.page`. |