#23324 closed Cleanup/optimization (fixed)
sites framework docs - omits the site id from the Site model
Reported by: | kiddhustle | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.6 |
Severity: | Normal | Keywords: | documentaion |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
The documentation for the sites framework omits the site id from the model.
The site id is automatically added to the model by Django (the id attribute) but no where in the documentation does it say that the user can access the current site_id via the model, only the domain and name attributes are shown.
It took me a good hour or so of searching for a way to get the current site id, before realising that like most model an 'id' attribute would be created for the Site model by Django (after browsing the Django source code).
I should have guessed this earlier but it wasn't made obvious in the documentation.
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | 23324.diff added |
---|
comment:1 by , 10 years ago
Has patch: | set |
---|
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Does the attached patch make sense to you?