Opened 9 years ago

Closed 9 years ago

#11480 closed (fixed)

Small typo in The Django admin site documentation

Reported by: msgre <michal@…> Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: modeladmin typo
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


there is a small typo at get_urls chapter ( 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 Changed 9 years ago by Alex Gaynor

Resolution: worksforme
Status: newclosed

This renders just fine for me.

comment:2 Changed 9 years ago by msgre <michal@…>

Hello Alex,
there is some problem. I visit this page with 3 different browsers (on my OS X) and all of them show code example as normal text (not in green box). I made some screenshots for you (the problem part is on the bottom):

comment:3 Changed 9 years ago by Karen Tracey

Resolution: worksforme
Status: closedreopened

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 Changed 9 years ago by Russell Keith-Magee

Resolution: fixed
Status: reopenedclosed

(In 11240) Fixed #11480 -- Corrected markup error in admin docs. Thank to msgre for the report.

Note: See TracTickets for help on using tickets.
Back to Top