diff --git a/content/admin.py b/content/admin.py index 61995d2..38ff7b1 100644 --- a/content/admin.py +++ b/content/admin.py @@ -49,6 +49,8 @@ class LabelAdmin(PermissionsAdminMixin, admin.ModelAdmin): @admin.register(SubmittedQuestion) class SubmittedQuestionAdmin(admin.ModelAdmin): list_filter = [ActiveFilter,] + list_display = ['__str__', 'release'] + list_editable = ['release',] @admin.register(Question) diff --git a/content/models.py b/content/models.py index f53871a..537bb9d 100644 --- a/content/models.py +++ b/content/models.py @@ -94,6 +94,7 @@ def release_submitted(sender, instance: SubmittedQuestion, **kwargs): buzzword=instance.buzzword, question=instance.question, awnser=instance.awnser, + is_published=True, ) try: n.labels.set(instance.labels.all()) diff --git a/content/templates/submit-question.html b/content/templates/submit-question.html index e0a22d6..d350e0f 100644 --- a/content/templates/submit-question.html +++ b/content/templates/submit-question.html @@ -34,11 +34,18 @@ } {% if messages %} -