1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Used consistent capitalization and hyphenation of "class-based views" in docs.

This commit is contained in:
Anton Strogonoff
2015-08-19 02:01:36 +06:00
committed by Tim Graham
parent 39b55537ec
commit 20787b5c29
11 changed files with 14 additions and 15 deletions

View File

@@ -506,7 +506,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__)