api changes

make superset tappable with no title
sort / filter / search on superset
This commit is contained in:
Trey t
2024-12-02 18:14:34 -06:00
parent fdebf7e499
commit 2a16b75c4b
2 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,8 @@ class SupersetExerciseInline(admin.StackedInline):
@admin.register(Superset)
class SupersetAdmin(ImportExportModelAdmin):
list_display = ("name", "workout", "order", "rounds", "get_workout_id", "estimated_time",)
search_fields = ['workout__id', 'name']
list_display = ("name", "get_workout_id", "workout", "order", "rounds", "estimated_time",)
ordering = ("order",)
inlines = [
SupersetExerciseInline,