Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#20146 closed Bug (fixed)

Incorrect documentation for "remove_tags" method in django.utils.html

Reported by: helmut@… Owned by: ferhatelmas
Component: Documentation Version: 1.5
Severity: Normal Keywords:
Cc: bmispelon@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


This refers to the documentation for the "remove_tags" method on the following page:

The documentation shows an example where the "tags" parameter for this method is given as a list, but in actual fact, the method expects a string (space separated, I assume). Passing in a list for that parameter results in an error:
AttributeError: 'list' object has no attribute 'split'.

Change History (6)

comment:1 Changed 6 years ago by Tim Graham

Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:2 Changed 6 years ago by ferhatelmas

Owner: changed from nobody to ferhatelmas
Status: newassigned

comment:4 Changed 6 years ago by Baptiste Mispelon

Cc: bmispelon@… added
Triage Stage: AcceptedReady for checkin

The patch looks good.

comment:5 Changed 6 years ago by Claude Paroz <claude@…>

Resolution: fixed
Status: assignedclosed

In e5d252f5b9bc586a61113943f13e8fe6147d9e3d:

Fixed #20146 -- Updated removed_tags example

comment:6 Changed 6 years ago by Claude Paroz <claude@…>

In 56d4356d8cb6e683c354a4b8f22a17d37624d6e8:

[1.5.x] Fixed #20146 -- Updated removed_tags example

Backport of e5d252f5b9 from master.

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