Code

Opened 5 years ago

Closed 5 years ago

Last modified 3 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).

Attachments (0)

Change History (2)

comment:1 Changed 5 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 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.