#12040 closed (fixed)
CurrentSiteManager documentation lacks indication when used in manytomany
| Reported by: | elpaso66 | Owned by: | Gabriel Hurley |
|---|---|---|---|
| Component: | Documentation | Version: | 1.1 |
| Severity: | Keywords: | sites framework manager | |
| 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
http://docs.djangoproject.com/en/dev/ref/contrib/sites/
Should mention that the default field name for many-to-many is "sites" (plural) and not "site".
At least an example with m2m should show how to make it work:
on_site = CurrentSiteManager(field_name = 'sites')
Attachments (1)
Change History (9)
comment:1 by , 16 years ago
| milestone: | → 1.2 |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | assigned → new |
by , 16 years ago
| Attachment: | 12040_sites_docs.diff added |
|---|
Cleans up the docs in that area and adds information about "sites" vs. "site"
comment:4 by , 16 years ago
| Has patch: | set |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
I gave it my best go for cleaning up the docs there. Aside from noting about "sites" vs. "site" WRT ManyToManyFields and trying to sort out the all those :class: tags in there, I also corrected some awkward phrasings and bad line-wrapping.
comment:5 by , 16 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:6 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
There are also some markup problems around this area - the site attribute is marked up as the class Site, which could be confusing.