Skip to content

Enhance cadmin with link styling, Django admin shortcuts, and project submission editing#133

Merged
alexeygrigorev merged 5 commits into
mainfrom
copilot/update-cadmin-link-and-features
Jan 16, 2026
Merged

Enhance cadmin with link styling, Django admin shortcuts, and project submission editing#133
alexeygrigorev merged 5 commits into
mainfrom
copilot/update-cadmin-link-and-features

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 16, 2026

Updates the course admin panel (cadmin) with improved navigation and editing capabilities. Makes the admin link consistent with other admin-only links, adds quick access to Django admin, and enables editing project submission scores after evaluation.

Changes

Link styling

  • Changed cadmin link from button to plain link on separate line in courses/course.html
  • Now matches homework/project admin link style: <i class="fas fa-cog"></i> Manage course (Admin only)

Django admin shortcuts

Added edit links in cadmin/course_admin.html:

  • Course-level: Direct link to edit course in Django admin
  • Homework/Project tables: Edit icon next to each title linking to Django admin
<a href="/admin/courses/homework/{{ hw.id }}/change/" title="Edit in Django Admin">
  <i class="fas fa-edit"></i>
</a>

Project submission editing

New edit functionality within cadmin (not Django admin):

  • Edit button in project submissions table
  • New route: cadmin/<course>/<project>/submissions/<id>/edit
  • Editable fields: all score components, total score, reviewed_enough_peers, passed
  • Available even after evaluation phase completes
@staff_required
def project_submission_edit(request, course_slug, project_slug, submission_id):
    # Updates project_score, peer_review_score, total_score, passed, etc.
    # With validation and user feedback

Test structure

Restructured cadmin/tests.pycadmin/tests/ folder to match courses/tests/ and data/tests/ patterns. Updated pyproject.toml testpaths accordingly.

Original prompt

This section details on the original issue you should resolve

<issue_title>New features for cadmin</issue_title>
<issue_description>We recently added the course admin panel

Please do this:

  • inside courses (the view for everyone) make the link to cadmin a link, not a button. Just like in homework/project submission forms
  • add links to the Django admin panel for course, homework, project
  • make it possible to edit project submission results after the evaluation phase </issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits January 16, 2026 07:25
- Changed cadmin link from button to plain link in course.html
- Added Django admin links to course_admin.html for Course, Homework, and Project
- Registered ProjectSubmission in Django admin to allow editing results after evaluation

Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
- Move cadmin link to separate line in course.html
- Remove ProjectSubmission from Django admin
- Add edit functionality for project submissions in cadmin
- Restructure cadmin tests from single file to tests/ folder
- Add project_submission_edit view and template

Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
Copilot AI changed the title [WIP] Update course admin panel links and edit functionality Enhance cadmin with link styling, Django admin shortcuts, and project submission editing Jan 16, 2026
Copilot AI requested a review from alexeygrigorev January 16, 2026 07:33
@alexeygrigorev alexeygrigorev marked this pull request as ready for review January 16, 2026 07:35
@alexeygrigorev alexeygrigorev merged commit f021d14 into main Jan 16, 2026
2 checks passed
@alexeygrigorev alexeygrigorev deleted the copilot/update-cadmin-link-and-features branch January 16, 2026 07:40
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.

New features for cadmin

2 participants