Commit 29255fcb authored by Tim Graham's avatar Tim Graham
Browse files

Fixed some ReST errors regarding backticks

parent 354009d6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -295,9 +295,9 @@ validation process will break.
Therefore, you must ensure that the form field used to represent your
custom field performs whatever input validation and data cleaning is
necessary to convert user-provided form input into a
`to_python()`-compatible model field value. This may require writing a
``to_python()``-compatible model field value. This may require writing a
custom form field, and/or implementing the :meth:`.formfield` method on
your field to return a form field class whose `to_python()` returns the
your field to return a form field class whose ``to_python()`` returns the
correct datatype.

Documenting your custom field
+2 −1
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ the easiest, fastest, and most stable deployment choice.
    * `Chapter 12 of the Django Book (second edition)`_ discusses deployment
      and especially scaling in more detail. However, note that this edition
      was written against Django version 1.1 and has not been updated since
      `mod_python` was first deprecated, then completely removed in Django 1.5.
      ``mod_python`` was first deprecated, then completely removed in
      Django 1.5.

.. _chapter 12 of the django book (second edition): http://djangobook.com/en/2.0/chapter12/
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ version >= 2.2 and mod_wsgi >= 2.0. For example, you could:

.. note::
    If you have installed a :ref:`custom User model <auth-custom-user>` and
    want to use this default auth handler, it must support an `is_active`
    want to use this default auth handler, it must support an ``is_active``
    attribute. If you want to use group based authorization, your custom user
    must have a relation named 'groups', referring to a related object that has
    a 'name' field. You can also specify your own custom mod_wsgi
+1 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ other approaches:
   configuration).

2. Use an ``Alias`` directive, as demonstrated above, to alias the appropriate
   URL (probably :setting:`STATIC_URL` + `admin/`) to the actual location of
   URL (probably :setting:`STATIC_URL` + ``admin/``) to the actual location of
   the admin files.

3. Copy the admin static files so that they live within your Apache
+1 −1
Original line number Diff line number Diff line
@@ -600,7 +600,7 @@ for your own sanity when dealing with the interactive prompt, but also because
objects' representations are used throughout Django's automatically-generated
admin.

.. admonition:: `__unicode__` or `__str__`?
.. admonition:: ``__unicode__`` or ``__str__``?

    On Python 3, things are simpler, just use
    :meth:`~django.db.models.Model.__str__` and forget about
Loading