django.contrib.comments/django.contrib.sites/django.contrib.admin don't cooperate on site_id
|Reported by:||jl6||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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).