mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[1.8.x] Used consistent capitalization and hyphenation of "class-based views" in docs.
Backport of 20787b5c29 from master
This commit is contained in:
committed by
Tim Graham
parent
3caa7a2325
commit
a67bf4be35
@@ -472,7 +472,7 @@ Specifically, a ``Response`` object has the following attributes:
|
||||
# my_view here is a function based view
|
||||
self.assertEqual(response.resolver_match.func, my_view)
|
||||
|
||||
# class based views need to be compared by name, as the functions
|
||||
# class-based views need to be compared by name, as the functions
|
||||
# generated by as_view() won't be equal
|
||||
self.assertEqual(response.resolver_match.func.__name__, MyView.as_view().__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user