Opened 6 years ago

Closed 6 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:

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 Changed 6 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

This renders just fine for me.

comment:2 Changed 6 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 6 years ago by kmtracey

  • Resolution worksforme deleted
  • Status changed from closed to 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 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from reopened to closed

(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