#11180 closed (invalid)
django.contrib.comments/django.contrib.sites/django.contrib.admin don't cooperate on site_id
Reported by: | jl6 | Owned by: | nobody |
---|---|---|---|
Component: | contrib.comments | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm not certain what the underlying cause of this issue is, or whether the summary above is an accurate diagnosis, but this is what happens:
- Install django.contrib.sites
- Create a Site.
- Delete it.
- Install django.contrib.comments
- Leave a comment using a comment form.
- The comments don't show up in the admin.
I noticed that each comment was given site_id "1", even though that site had been deleted. Adding a new site, and changing its id directly in the database, was enough to "solve" this (i.e. the comments now show up in the admin).
Note:
See TracTickets
for help on using tickets.
This is what the setting,
SITE_ID
is for. Please don't use the ticket tracker for asking support questions, use either #django on freenode, or the django-users mailing list.