diff options
author | pnshiralkar | 2020-05-18 20:51:47 +0530 |
---|---|---|
committer | pnshiralkar | 2020-05-18 20:51:47 +0530 |
commit | 5d8b002b48da791b090314a2df3e500734b5b62f (patch) | |
tree | 6e037ca08fa4e8f9c57920562615a3f0b136c1ce /workshop_app/admin.py | |
parent | a950ed30df4186cee4f08cbde8ad8a210d134e8b (diff) | |
download | workshop_booking-5d8b002b48da791b090314a2df3e500734b5b62f.tar.gz workshop_booking-5d8b002b48da791b090314a2df3e500734b5b62f.tar.bz2 workshop_booking-5d8b002b48da791b090314a2df3e500734b5b62f.zip |
Renamed model WorkshopComments to Comments and added hidden tag to the non-public comments
Diffstat (limited to 'workshop_app/admin.py')
-rw-r--r-- | workshop_app/admin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/workshop_app/admin.py b/workshop_app/admin.py index 5182776..988351f 100644 --- a/workshop_app/admin.py +++ b/workshop_app/admin.py @@ -6,7 +6,7 @@ from django.http import HttpResponse from .models import ( Profile, WorkshopType, Workshop, - Testimonial, WorkshopComment, Banner, AttachmentFile + Testimonial, Comment, Banner, AttachmentFile ) try: @@ -117,7 +117,7 @@ class TestimonialAdmin(admin.ModelAdmin): download_csv.short_description = "Download CSV file for selected stats." -class WorkshopCommentAdmin(admin.ModelAdmin): +class CommentAdmin(admin.ModelAdmin): list_display = ['workshop', 'comment', 'created_date', 'author', 'public'] list_filter = ['workshop', 'author', 'created_date', 'public'] @@ -127,6 +127,6 @@ admin.site.register(Profile, ProfileAdmin) admin.site.register(WorkshopType, WorkshopTypeAdmin) admin.site.register(Workshop, WorkshopAdmin) admin.site.register(Testimonial, TestimonialAdmin) -admin.site.register(WorkshopComment, WorkshopCommentAdmin) +admin.site.register(Comment, CommentAdmin) admin.site.register(Banner) admin.site.register(AttachmentFile) |