Opened 13 years ago
Closed 13 years ago
#18589 closed Cleanup/optimization (fixed)
Typo in class-based generic views doc
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | 1.4 |
| Severity: | Normal | Keywords: | documentation, typo |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
On this page: https://docs.djangoproject.com/en/dev/topics/class-based-views/generic-display/, under the Dynamic Filtering heading, there is a typo in the 3rd code example
PublisherBookListView should be PublisherBookList to match the previous code examples.
Existing:
def get_context_data(self, **kwargs):
# Call the base implementation first to get a context
context = super(PublisherBookListView, self).get_context_data(**kwargs)
# Add in the publisher
context['publisher'] = self.publisher
return context
Revised:
# ...
def get_context_data(self, **kwargs):
# Call the base implementation first to get a context
context = super(PublisherBookList, self).get_context_data(**kwargs)
# Add in the publisher
context['publisher'] = self.publisher
return context
Change History (2)
comment:1 by , 13 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In [d94cfdcfae92fd4409cd1b5e14eebc75033266fd]: