#13876 closed (fixed)
Documentation duplicates
Reported by: | Owned by: | Horst Gutmann | |
---|---|---|---|
Component: | Documentation | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
In documentation page "the Django admin site" : a section is written twice in a row, the one starting with :
"If the string given is a method of the model, ModelAdmin or a callable, Django will HTML-escape the output by default. If you'd rather not escape the output of the method, give the method an allow_tags attribute whose value is True."
Besides, in request-response doc , two different sections deal with setting/reading request headers, maybe they should be merged :
""" Here's a full example model: You can add and delete headers using dictionary syntax: >>> response = HttpResponse() >>> response['X-DJANGO'] = "It's the best." >>> del response['X-PHP'] >>> response['X-DJANGO'] "It's the best." Note that del doesn't raise KeyError if the header doesn't exist. [....] Setting headers To set a header in your response, just treat it like a dictionary: """
Cheers,
Pascal
Attachments (2)
Change History (10)
comment:1 by , 14 years ago
Description: | modified (diff) |
---|
comment:2 by , 14 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
While the first issue I can't reproduce (the paragraphs started with the same phrases but then went in totally different directions), +1 on the second issue. I attached a patch for that based on 1.2.X
by , 14 years ago
Attachment: | 13876.diff added |
---|
comment:3 by , 14 years ago
Owner: | changed from | to
---|
comment:4 by , 14 years ago
Indeed I can't find issue 1 again, either it's been fixed since then or I just got confused.
comment:5 by , 14 years ago
Component: | Uncategorized → Documentation |
---|
by , 14 years ago
Attachment: | 13876.2.diff added |
---|
more concise wording, correct position of versionadded tag
comment:6 by , 14 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:7 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Added formatting.