Skip to content

Commit

Permalink
Fix docs formatting (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Jan 15, 2018
1 parent d1f5537 commit bbf5e08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ Multiple Form Inheritance
Multiple :class:`RegistrationForm` subclasses can be inherited into one class.
For instance, if your project requires a terms of service and a unique email
upon registration, those subclasses can be inherited into a single class. That
would look like this:
would look like this::

# myapp/forms.py
class CustomForm(RegistrationFormTermsOfService, RegistrationFormUniqueEmail):
class CustomForm(RegistrationFormTermsOfService, RegistrationFormUniqueEmail):
pass

NOTE: If inheriting both :class:`RegistrationFormNoFreeEmail` and
:class:`RegistrationFormUniqueEmail`. :class:`RegistrationFormNoFreeEmail`
must be inherited first, like this:
must be inherited first, like this::

# myapp/forms.py
class CustomForm(RegistrationFormNoFreeEmail, RegistrationFormUniqueEmail):
class CustomForm(RegistrationFormNoFreeEmail, RegistrationFormUniqueEmail):
pass

You can also add any customization to the form, to add additional fields for
Expand Down
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ more detailed information, including how to customize the registration
process (and support for alternate registration systems), read through
the documentation listed below.

If you are upgrading from a previous release, please read the
<https://github.com/macropin/django-registration/blob/master/CHANGELOG>`_
for information on what's changed.
If you are upgrading from a previous release, please read the `CHANGELOG
<https://github.com/macropin/django-registration/blob/master/CHANGELOG>`_ for
information on what's changed.

Contents:

Expand Down

0 comments on commit bbf5e08

Please sign in to comment.