HF RL Explorer

Task: Implement Sortable Custom Field in Django Admin

Task: Implement Sortable Custom Field in Django Admin: a task in Terminal-Lego-15k (Harbor dataset). Create a Django application where the admin interface allows sorting by a custom computed field ( number of orders ) that has no corresponding database column. The solution must use Django's get…

The task

Create a Django application where the admin interface allows sorting by a custom computed field (`number_of_orders`) that has no corresponding database column. The solution must use Django's `get_queryset` method with annotation to enable proper database-level sorting for a custom `list_display` field.

Part of PrimeIntellect/Terminal-Lego-15k.