Opened 15 years ago
Closed 15 years ago
#11480 closed (fixed)
Small typo in The Django admin site documentation
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | modeladmin typo | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hello,
there is a small typo at get_urls chapter (http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_urls). This example isn't displayed as code (in green box):
class MyModelAdmin(admin.ModelAdmin): def get_urls(self): urls = super(MyModelAdmin, self).get_urls() my_urls = patterns('', (r'^my_view/$', self.admin_site.admin_view(self.my_view)) ) return my_urls + urls
Change History (4)
comment:1 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 15 years ago
comment:3 by , 15 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Probably would have helped to mention that the code block that doesn't render properly is the 2nd one after the anchor point. Without looking really closely at the code in question (or further down the page) it's pretty hard to notice that the code block you are referring to is slightly different from the 1st one (which displays correctly) immediately following the referenced anchor.
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
(In 11240) Fixed #11480 -- Corrected markup error in admin docs. Thank to msgre for the report.
This renders just fine for me.