Loading docs/howto/custom-model-fields.txt +1 −1 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ card values plus their suits; 104 characters in total. you want your fields to be more strict about the options they select, or to use the simpler, more permissive behavior of the current fields. .. method:: Field.__init__ .. method:: Field.__init__() The :meth:`~django.db.models.Field.__init__` method takes the following parameters: Loading docs/howto/custom-template-tags.txt +3 −3 Original line number Diff line number Diff line Loading @@ -118,7 +118,7 @@ your function. Example: Registering custom filters ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. method:: django.template.Library.filter .. method:: django.template.Library.filter() Once you've written your filter definition, you need to register it with your ``Library`` instance, to make it available to Django's template language: Loading Loading @@ -157,7 +157,7 @@ are described in :ref:`filters and auto-escaping <filters-auto-escaping>` and Template filters that expect strings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. method:: django.template.defaultfilters.stringfilter .. method:: django.template.defaultfilters.stringfilter() If you're writing a template filter that only expects a string as the first argument, you should use the decorator ``stringfilter``. This will Loading Loading @@ -750,7 +750,7 @@ cannot resolve the string passed to it in the current context of the page. Simple tags ~~~~~~~~~~~ .. method:: django.template.Library.simple_tag .. method:: django.template.Library.simple_tag() Many template tags take a number of arguments -- strings or template variables -- and return a string after doing some processing based solely on Loading docs/ref/contrib/comments/moderation.txt +1 −1 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ models with an instance of the subclass. :func:`moderator.unregister` methods detailed above, the following methods on :class:`Moderator` can be overridden to achieve customized behavior: .. method:: connect .. method:: connect() Determines how moderation is set up globally. The base implementation in Loading docs/ref/contrib/formtools/form-preview.txt +1 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ default templates. Advanced ``FormPreview`` methods ================================ .. method:: FormPreview.process_preview .. method:: FormPreview.process_preview() Given a validated form, performs any extra processing before displaying the preview page, and saves any extra data in context. Loading docs/ref/contrib/formtools/form-wizard.txt +1 −1 Original line number Diff line number Diff line Loading @@ -229,7 +229,7 @@ Here's a full example template: Hooking the wizard into a URLconf --------------------------------- .. method:: WizardView.as_view .. method:: WizardView.as_view() Finally, we need to specify which forms to use in the wizard, and then deploy the new :class:`WizardView` object at a URL in the ``urls.py``. The Loading Loading
docs/howto/custom-model-fields.txt +1 −1 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ card values plus their suits; 104 characters in total. you want your fields to be more strict about the options they select, or to use the simpler, more permissive behavior of the current fields. .. method:: Field.__init__ .. method:: Field.__init__() The :meth:`~django.db.models.Field.__init__` method takes the following parameters: Loading
docs/howto/custom-template-tags.txt +3 −3 Original line number Diff line number Diff line Loading @@ -118,7 +118,7 @@ your function. Example: Registering custom filters ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. method:: django.template.Library.filter .. method:: django.template.Library.filter() Once you've written your filter definition, you need to register it with your ``Library`` instance, to make it available to Django's template language: Loading Loading @@ -157,7 +157,7 @@ are described in :ref:`filters and auto-escaping <filters-auto-escaping>` and Template filters that expect strings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. method:: django.template.defaultfilters.stringfilter .. method:: django.template.defaultfilters.stringfilter() If you're writing a template filter that only expects a string as the first argument, you should use the decorator ``stringfilter``. This will Loading Loading @@ -750,7 +750,7 @@ cannot resolve the string passed to it in the current context of the page. Simple tags ~~~~~~~~~~~ .. method:: django.template.Library.simple_tag .. method:: django.template.Library.simple_tag() Many template tags take a number of arguments -- strings or template variables -- and return a string after doing some processing based solely on Loading
docs/ref/contrib/comments/moderation.txt +1 −1 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ models with an instance of the subclass. :func:`moderator.unregister` methods detailed above, the following methods on :class:`Moderator` can be overridden to achieve customized behavior: .. method:: connect .. method:: connect() Determines how moderation is set up globally. The base implementation in Loading
docs/ref/contrib/formtools/form-preview.txt +1 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ default templates. Advanced ``FormPreview`` methods ================================ .. method:: FormPreview.process_preview .. method:: FormPreview.process_preview() Given a validated form, performs any extra processing before displaying the preview page, and saves any extra data in context. Loading
docs/ref/contrib/formtools/form-wizard.txt +1 −1 Original line number Diff line number Diff line Loading @@ -229,7 +229,7 @@ Here's a full example template: Hooking the wizard into a URLconf --------------------------------- .. method:: WizardView.as_view .. method:: WizardView.as_view() Finally, we need to specify which forms to use in the wizard, and then deploy the new :class:`WizardView` object at a URL in the ``urls.py``. The Loading