Self hosted FLOSS fitness/workout, nutrition and weight tracker
Automatic linting
Github-actions0dd0fc26e2b9
diff --git a/wger/exercises/migrations/0022_alter_exercise_license_author_and_more.py b/wger/exercises/migrations/0022_alter_exercise_license_author_and_more.pyindex fdcf81317..b58b1c8ff 100644--- a/wger/exercises/migrations/0022_alter_exercise_license_author_and_more.py+++ b/wger/exercises/migrations/0022_alter_exercise_license_author_and_more.py@@ -13,41 +13,97 @@ class Migration(migrations.Migration):migrations.AlterField(model_name='exercise',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),migrations.AlterField(model_name='exercisebase',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),migrations.AlterField(model_name='exerciseimage',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),migrations.AlterField(model_name='exercisevideo',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),migrations.AlterField(model_name='historicalexercise',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),migrations.AlterField(model_name='historicalexercisebase',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),migrations.AlterField(model_name='historicalexerciseimage',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),migrations.AlterField(model_name='historicalexercisevideo',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),]diff --git a/wger/nutrition/migrations/0012_alter_ingredient_license_author.py b/wger/nutrition/migrations/0012_alter_ingredient_license_author.pyindex 745d9665c..4b777e802 100644--- a/wger/nutrition/migrations/0012_alter_ingredient_license_author.py+++ b/wger/nutrition/migrations/0012_alter_ingredient_license_author.py@@ -13,6 +13,13 @@ class Migration(migrations.Migration):migrations.AlterField(model_name='ingredient',name='license_author',- field=models.CharField(blank=True, help_text='If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.', max_length=60, null=True, verbose_name='Author'),+ field=models.CharField(+ blank=True,+ help_text=+ 'If you are not the author, enter the name or source here. This is needed for some licenses e.g. the CC-BY-SA.',+ max_length=60,+ null=True,+ verbose_name='Author'+ ),),]diff --git a/wger/utils/models.py b/wger/utils/models.pyindex 2d76d7cfa..5f3dc67e3 100644--- a/wger/utils/models.py+++ b/wger/utils/models.py@@ -22,6 +22,7 @@ from django.utils.translation import gettext_lazy as _from wger.core.models import Licensefrom wger.utils.constants import DEFAULT_LICENSE_ID+"""Abstract model classes"""