Self hosted FLOSS fitness/workout, nutrition and weight tracker
Remove admin config files
Roland Geidere4513bde2cd5
diff --git a/wger/exercises/admin.py b/wger/exercises/admin.pydeleted file mode 100644index 512967f86..000000000--- a/wger/exercises/admin.py+++ /dev/null@@ -1,41 +0,0 @@-# This file is part of wger Workout Manager.-#-# wger Workout Manager 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.-#-# wger 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--# Django-from django.contrib import admin--# wger-from wger.core.models import Language-from wger.exercises.models import (- Exercise,- ExerciseCategory,- ExerciseComment,- Muscle,-)---class ExerciseCommentInline(admin.TabularInline): # admin.StackedInline- model = ExerciseComment- extra = 1---class ExerciseAdmin(admin.ModelAdmin):-- inlines = [ExerciseCommentInline]---admin.site.register(Exercise, ExerciseAdmin)-admin.site.register(ExerciseCategory)-admin.site.register(Language)-admin.site.register(Muscle)diff --git a/wger/manager/admin.py b/wger/manager/admin.pydeleted file mode 100644index 4f177dcc5..000000000--- a/wger/manager/admin.py+++ /dev/null@@ -1,29 +0,0 @@-# This file is part of wger Workout Manager.-#-# wger Workout Manager 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.-#-# wger 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--# Django-from django.contrib import admin--# wger-from wger.core.models import UserProfile-from wger.manager import models as manager_models---admin.site.register(manager_models.Workout)-admin.site.register(manager_models.Set)-admin.site.register(manager_models.Day)-admin.site.register(manager_models.WorkoutLog)-admin.site.register(UserProfile)--admin.site.register(manager_models.Setting)diff --git a/wger/urls.py b/wger/urls.pyindex 0907a0240..a8fb8c490 100644--- a/wger/urls.py+++ b/wger/urls.py@@ -53,8 +53,6 @@ from wger.utils.generic_views import TextTemplateViewfrom wger.weight.api import views as weight_api_views-# admin.autodiscover()-## REST API#@@ -219,7 +217,6 @@ sitemaps = {'exercises': ExercisesSitemap, 'nutrition': NutritionSitemap}# The actual URLs#urlpatterns = i18n_patterns(- # url(r'^admin/', admin.site.urls),path('', include(('wger.core.urls', 'core'), namespace='core')),path('routine/', include(('wger.manager.urls', 'manager'), namespace='manager')),path('exercise/', include(('wger.exercises.urls', 'exercise'), namespace='exercise')),diff --git a/wger/weight/admin.py b/wger/weight/admin.pydeleted file mode 100644index fb62051e4..000000000--- a/wger/weight/admin.py+++ /dev/null@@ -1,22 +0,0 @@-# This file is part of wger Workout Manager.-#-# wger Workout Manager 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.-#-# wger 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--# Django-from django.contrib import admin--# wger-from wger.weight.models import WeightEntry---admin.site.register(WeightEntry)