You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add participant management without user authentication
Fixes#8
Add support for participants without user authentication and manage their participation in tournaments.
* Add `Participant` class with a nullable foreign reference to `auth.User` in `tournaments/tournaments/models.py`.
* Modify `Participation` class to reference `Participant` instead of `auth.User` in `tournaments/tournaments/models.py`.
* Update `required_confirmations_count` method to count only participants with non-null `auth.User` in `tournaments/tournaments/models.py`.
* Add `ManageParticipantsView` to manage participants without user authentication in `tournaments/frontend/views.py`.
* Modify `JoinTournamentView` and `WithdrawTournamentView` to support participants without user authentication in `tournaments/frontend/views.py`.
* Add migration to create `Participant` model and update `Participation` model in `tournaments/tournaments/migrations/0003_add_participant.py`.
* Add HTML template for managing participants without user authentication in `tournaments/frontend/templates/frontend/manage-participants.html`.
* Add tests to verify the new functionality for participants without user authentication in `tournaments/frontend/tests.py`.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/kosmotive/tournaments/issues/8?shareId=XXXX-XXXX-XXXX-XXXX).
0 commit comments