diff options
author | Akshen | 2018-08-06 16:36:15 +0530 |
---|---|---|
committer | Akshen | 2018-08-06 16:36:15 +0530 |
commit | c90b389e388a572862e484fb7b0b674f8c676dd7 (patch) | |
tree | da1b73420e2528e71b6b06e4223a58ec0ded566e /workshop_app/admin.py | |
parent | 49b05ba8b289430f2d0483f544106bb6d0057a9a (diff) | |
download | workshop_booking-c90b389e388a572862e484fb7b0b674f8c676dd7.tar.gz workshop_booking-c90b389e388a572862e484fb7b0b674f8c676dd7.tar.bz2 workshop_booking-c90b389e388a572862e484fb7b0b674f8c676dd7.zip |
Add testcases for ProfileComments Model
- Add testcases for ProfileComments model
- Add ProfileComments to ModelAdmin
- update ReadMe and Getting_Started
Diffstat (limited to 'workshop_app/admin.py')
-rw-r--r-- | workshop_app/admin.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/workshop_app/admin.py b/workshop_app/admin.py index 1b7ae9d..5e7b82f 100644 --- a/workshop_app/admin.py +++ b/workshop_app/admin.py @@ -5,7 +5,7 @@ from .models import ( Profile, WorkshopType, Workshop, ProposeWorkshopDate, RequestedWorkshop, BookedWorkshop, - Testimonial + Testimonial, ProfileComments ) try: from StringIO import StringIO as string_io @@ -192,6 +192,11 @@ class BookedWorkshopAdmin(admin.ModelAdmin): download_csv.short_description = "Download CSV file for selected stats." + +class ProfileCommentAdmin(admin.ModelAdmin): + list_display = ['comment', 'created_date', 'coordinator_profile', 'instructor_profile'] + + # Register your models here. admin.site.register(Profile, ProfileAdmin) admin.site.register(WorkshopType, WorkshopTypeAdmin) @@ -200,3 +205,4 @@ admin.site.register(ProposeWorkshopDate, ProposeWorkshopDateAdmin) admin.site.register(RequestedWorkshop, RequestedWorkshopAdmin) admin.site.register(BookedWorkshop, BookedWorkshopAdmin) admin.site.register(Testimonial, TestimonialAdmin) +admin.site.register(ProfileComments, ProfileCommentAdmin) |