Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need survey responses in the admin #332

Open
RachellCalhoun opened this issue Mar 26, 2024 · 3 comments · May be fixed by #352
Open

Need survey responses in the admin #332

RachellCalhoun opened this issue Mar 26, 2024 · 3 comments · May be fixed by #352
Assignees
Labels
priority python Pull requests that update Python code

Comments

@RachellCalhoun
Copy link
Member

RachellCalhoun commented Mar 26, 2024

We need to expose UserQuestionResponse and UserSurveyResponse in the django admin.

related to: #303

@RachellCalhoun RachellCalhoun added priority python Pull requests that update Python code labels Mar 26, 2024
@Pradhvan
Copy link

Hey @RachellCalhoun asking a dumb question, I am new to wagtail, by exposing you mean just add them like we generally do in Django

@admin.register(UserQuestionResponse)
class UserQuestionResponseAdmin(admin.ModelAdmin):
    model = UserQuestionResponse


@admin.register(UserSurveyResponse)
class UserSurveyResponse(admin.ModelAdmin):
    model = UserSurveyResponse

Or have them shown in the wagtail admin something like using ModelAdmin and modeladmin_register

from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register 

I did setup the project just now locally and going through some blogs on wagtail Ref: How to Add Django Models to the Wagtail Admin

@RachellCalhoun
Copy link
Member Author

@Pradhvan This is a great question, thanks for asking! We want to add those models to the Django admin, not Wagtail.
Let me know if you'd like more clarification. 🙂

@Pradhvan
Copy link

Pradhvan commented Mar 29, 2024

@Pradhvan This is a great question, thanks for asking! We want to add those models to the Django admin, not Wagtail. Let me know if you'd like more clarification. 🙂

Thanks @RachellCalhoun, I got it. Just opened a draft PR for the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority python Pull requests that update Python code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants