feat: Add contest problem statement override feature#516
Open
whlongg wants to merge 3 commits intoVNOI-Admin:masterfrom
Open
feat: Add contest problem statement override feature#516whlongg wants to merge 3 commits intoVNOI-Admin:masterfrom
whlongg wants to merge 3 commits intoVNOI-Admin:masterfrom
Conversation
- Add name_override, pdf_url_override, description_override fields to ContestProblem model - Add effective_name, effective_pdf_url, effective_description properties - Update admin interface to support override fields - Update contest views to display overridden values - Update templates to use effective values - Add migration 0216_contest_problem_override_fields Closes VNOI-Admin#493
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements the contest problem statement override feature, allowing contest organizers to customize problem names, descriptions, and PDF statements for specific contests without modifying the original problem data.
Type of change: New feature
What
This PR adds the ability to override problem statements (name, description, PDF URL) on a per-contest basis. When a problem is added to a contest, organizers can now:
The original problem data remains unchanged, and overrides only apply within the specific contest context.
Why
This feature addresses issue #493 where contest organizers need to modify problem statements to:
Without this feature, organizers had to either:
Fixes #493
How Has This Been Tested?
Manual Testing:
http://localhost:8000/contest/override_test/Code Quality:
flake8on all modified Python files - no errorsChecklist
Screenshots:

By submitting this pull request, I confirm that my contribution is made under the terms of the AGPL-3.0 License.