mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.
This commit is contained in:
committed by
Mariusz Felisiak
parent
6015bab80e
commit
14459f80ee
@@ -16,7 +16,8 @@ Simple mixins
|
||||
:meth:`~django.views.generic.base.View.as_view`. Example usage::
|
||||
|
||||
from django.views.generic import TemplateView
|
||||
TemplateView.as_view(extra_context={'title': 'Custom Title'})
|
||||
|
||||
TemplateView.as_view(extra_context={"title": "Custom Title"})
|
||||
|
||||
**Methods**
|
||||
|
||||
@@ -27,7 +28,7 @@ Simple mixins
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context['number'] = random.randrange(1, 100)
|
||||
context["number"] = random.randrange(1, 100)
|
||||
return context
|
||||
|
||||
The template context of all class-based generic views include a
|
||||
|
||||
Reference in New Issue
Block a user