Skip to content

Add ability to add and remove speakers from teams in admin interface#2838

Open
TrudeauOkech wants to merge 3 commits intoTabbycatDebate:developfrom
TrudeauOkech:add-remove-speakers-in-team
Open

Add ability to add and remove speakers from teams in admin interface#2838
TrudeauOkech wants to merge 3 commits intoTabbycatDebate:developfrom
TrudeauOkech:add-remove-speakers-in-team

Conversation

@TrudeauOkech
Copy link
Copy Markdown
Contributor

Should fix #2689
Screenshot 2026-03-21 at 02 13 20

Copy link
Copy Markdown
Member

@tienne-B tienne-B left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay in the review!

</ul>
</details>

{% haspermission "add.team" as add_team_perm %}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this section be renamed? I think that having these action buttons in a section called "Custom Questions" could lead to people thinking that the answers are what will be deleted, not the speaker itself.

Also, a different permission should be used (like "delete speaker") for deletion.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's a fair point, will rename it. And will add a separate permission for deletion.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small things, but we should use form_class for both new form views, and then add the object in get_form_kwargs() rather than overriding get_form()

Also, for creation, I'm not sure the registration form would be the best, as a lot of fields may be missing, and admins may not want to answer the custom fields.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do, good catch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, I'll swap it out for a plain ModelForm on Speaker instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an idea, but maybe add an "Edit" button to the top of the registration card to send the user to the team's "Edit DB" page?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I'll add that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create mechanism to add/remove speakers in a team

2 participants