Open
Make preset creation easier: username owner search and compiler name display#2037
Conversation
- Backend: Add compiler dropdown to PresetAdmin with choices from available_compilers(), sorted alphabetically with platform names displayed - Backend: Replace raw_id_fields owner lookup with autocomplete_fields to enable username-based search - Backend: Add search_fields to ProfileAdmin (user__username, pseudonym) to support autocomplete - Frontend: Show human-readable compiler name (via i18n translation) instead of raw compiler ID - Frontend: Allow changing compiler via dropdown when editing a preset - Frontend: Include selected compiler in PATCH request on save
Copilot
AI
changed the title
[WIP] Update admin page for easier preset creation
Make preset creation easier: compiler dropdown, username owner search, and compiler name display
Jul 13, 2026
ethteck
marked this pull request as ready for review
July 13, 2026 08:03
Collaborator
|
Just tried to test this locally..
{
"non_field_errors": [
"Only compiler_flags can be edited on an existing preset."
],
"kind": "ValidationError"
}So that constraint should be changed & its unit test updated.
|
Member
|
Thanks for testing this better than I did :P The issue you reported should be fixed now, hopefully |
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.
Preset creation/editing was painful: owner lookup required knowing the numeric profile ID and the preset detail UI showed the opaque compiler ID instead of a human-readable name.
Backend — Django admin
raw_id_fields = ["owner"]withautocomplete_fields = ["owner"]so admins can search by username; addedsearch_fields = ["user__username", "pseudonym"]toProfileAdminto enable thisFrontend — Preset detail page
Selectdropdown; the chosen compiler is included in thePATCHrequest on save