Replace interactive docs with docs bug reporting

Per discussion from a long time ago, interactive docs aren't really
working out. The majority of submissions are either support questions
(which then get rejected because they cannot be answered in this
context) or pointing out docs incorrectnesses (which should be submitted
as a docs bug instead, so they can actually be fixed in the main
documentation).

Old references to /interactive/ will get redirected to /static/
automatically, and we expect to keep doing that for a long time (since
there are many links to them around the net).
This commit is contained in:
Magnus Hagander
2016-05-19 10:42:44 -04:00
parent a0915e925a
commit 2952b39754
14 changed files with 102 additions and 114 deletions

View File

@ -1,17 +1,2 @@
from django.contrib import admin
from models import DocComment
def approve_doccomment(modeladmin, request, queryset):
# We need to do this in a loop even though it's less efficient,
# since using queryset.update() will not send the moderation messages.
for e in queryset:
e.approved = True
e.save()
approve_doccomment.short_description = 'Approve comment'
class DocCommentAdmin(admin.ModelAdmin):
list_display = ('file', 'version', 'posted_at', 'approved', )
list_filter = ('approved', )
actions = [approve_doccomment, ]
admin.site.register(DocComment, DocCommentAdmin)