From d7df8178a04f08d5ca91e5b4959a235bc95cf0a6 Mon Sep 17 00:00:00 2001 From: Pradhvan Date: Fri, 29 Mar 2024 08:48:32 +0530 Subject: [PATCH 1/2] home/admin.py:Register UserQuestionResponse and UserSurveyResponse --- home/admin.py | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/home/admin.py b/home/admin.py index 867b6021..e9717bb2 100644 --- a/home/admin.py +++ b/home/admin.py @@ -2,11 +2,15 @@ from django.contrib import admin -from .models import Event -from .models import Question -from .models import Session -from .models import SessionMembership -from .models import Survey +from .models import ( + Event, + Question, + Session, + SessionMembership, + Survey, + UserQuestionResponse, + UserSurveyResponse, +) @admin.register(Event) @@ -56,3 +60,13 @@ class SurveyAdmin(admin.ModelAdmin): "deletable", "session", ) + + +@admin.register(UserQuestionResponse) +class UserQuestionResponseAdmin(admin.ModelAdmin): + model = UserQuestionResponse + + +@admin.register(UserSurveyResponse) +class UserSurveyResponse(admin.ModelAdmin): + model = UserSurveyResponse From afeaafff51201d3a8590b2e17ca5a66b3ccbaaf6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 03:23:14 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- home/admin.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/home/admin.py b/home/admin.py index e9717bb2..a17b496d 100644 --- a/home/admin.py +++ b/home/admin.py @@ -2,15 +2,13 @@ from django.contrib import admin -from .models import ( - Event, - Question, - Session, - SessionMembership, - Survey, - UserQuestionResponse, - UserSurveyResponse, -) +from .models import Event +from .models import Question +from .models import Session +from .models import SessionMembership +from .models import Survey +from .models import UserQuestionResponse +from .models import UserSurveyResponse @admin.register(Event)