Skip to content

Instantly share code, notes, and snippets.

@jezdez
Created June 10, 2012 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezdez/2907251 to your computer and use it in GitHub Desktop.
Save jezdez/2907251 to your computer and use it in GitHub Desktop.
diff --git a/docs/ref/class-based-views/fundamentals.txt b/docs/ref/class-based-views/fundamentals.txt
index 2591869..95ae352 100644
--- a/docs/ref/class-based-views/fundamentals.txt
+++ b/docs/ref/class-based-views/fundamentals.txt
@@ -16,9 +16,8 @@ views.
**Method Flowchart**
- 1. dispatch()
- 2. http_method_not_allowed()
-
+ 1. dispatch()
+ 2. http_method_not_allowed()
**Example views.py**::
@@ -83,9 +82,9 @@ views.
**Method Flowchart**
- 1. dispatch()
- 2. http_method_not_allowed()
- 3. get_context_data()
+ 1. dispatch()
+ 2. http_method_not_allowed()
+ 3. get_context_data()
**Example views.py**::
@@ -153,9 +152,9 @@ views.
**Method Flowchart**
- 1. dispatch()
- 2. http_method_not_allowed()
- 3. get_redirect_url()
+ 1. dispatch()
+ 2. http_method_not_allowed()
+ 3. get_redirect_url()
**Example views.py**::
diff --git a/docs/topics/class-based-views/generic-display.txt b/docs/topics/class-based-views/generic-display.txt
index fa40bd2..39fb41d 100644
--- a/docs/topics/class-based-views/generic-display.txt
+++ b/docs/topics/class-based-views/generic-display.txt
@@ -131,6 +131,7 @@ comes from the name of the app that defines the model, while the "publisher"
bit is just the lowercased version of the model's name.
.. note::
+
Thus, when (for example) the
:class:`django.template.loaders.app_directories.Loader` template loader is
enabled in :setting:`TEMPLATE_LOADERS`, a template location could be:
diff --git a/docs/topics/class-based-views/generic-editing.txt b/docs/topics/class-based-views/generic-editing.txt
index abeff0d..23d346a 100644
--- a/docs/topics/class-based-views/generic-editing.txt
+++ b/docs/topics/class-based-views/generic-editing.txt
@@ -136,10 +136,9 @@ Finally, we hook these new views into the URLconf::
)
.. note::
- These views inherit
- :class:`~django.views.generic.detail.SingleObjectTemplateResponseMixin`
- which uses
- :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_prefix`
+
+ These views inherit :class:`~django.views.generic.detail.SingleObjectTemplateResponseMixin`
+ which uses :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_prefix`
to construct the
:attr:`~django.views.generic.base.TemplateResponseMixin.template_name`
based on the model.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment