Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#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: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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:

  1. Install django.contrib.sites
  2. Create a Site.
  3. Delete it.
  4. Install django.contrib.comments
  5. Leave a comment using a comment form.
  6. 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).

Change History (2)

comment:1 Changed 6 years ago by Alex

  • Resolution set to invalid
  • Status changed from new to closed

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.

comment:2 Changed 4 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top