sites framework docs - omits the site id from the Site model
|Reported by:||kiddhustle||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.
Change History (6)
Changed 15 months ago by timgraham
comment:1 Changed 15 months ago by timgraham
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 15 months ago by Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed