mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
# This file is part of Workout Manager.
|
|
#
|
|
# Foobar is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Workout Manager is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
from manager.models import Exercise, ExerciseComment, ExerciseCategory, Day, TrainingSchedule, Set
|
|
from django.contrib import admin
|
|
|
|
class ExerciseCommentInline(admin.TabularInline): #admin.StackedInline
|
|
model = ExerciseComment
|
|
extra = 1
|
|
|
|
class ExerciseAdmin(admin.ModelAdmin):
|
|
#fields = ['name',]
|
|
|
|
inlines = [ExerciseCommentInline]
|
|
|
|
|
|
|
|
admin.site.register(TrainingSchedule)
|
|
admin.site.register(Set)
|
|
admin.site.register(Day)
|
|
|
|
admin.site.register(Exercise, ExerciseAdmin)
|
|
admin.site.register(ExerciseCategory)
|