mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-12 23:05:12 +00:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user