BO 1.20 training_plan active

This commit is contained in:
Bossanyi Tibor 2021-06-07 15:28:00 +02:00
parent 518b3c578e
commit 84f05228ad
4 changed files with 5 additions and 4 deletions

View File

@ -12,9 +12,9 @@ class TranslationTrainingPlanInline(admin.TabularInline):
class TrainingPlanAdmin(admin.ModelAdmin):
list_display = ('training_plan_id', 'name', 'internal_name', 'free')
list_display = ('training_plan_id', 'name', 'internal_name', 'free', 'active')
fields = ('tree', 'name', 'description', 'internal_name', 'free')
list_editable = ('name', 'internal_name', 'free')
list_editable = ('name', 'internal_name', 'free', 'active')
inlines = [
TranslationTrainingPlanInline

View File

@ -15,6 +15,7 @@ class TrainingPlan(models.Model):
internal_name = models.CharField(max_length=50, blank=True, help_text='Only for programmers! "internal_name" format',
verbose_name=_("internal_name"))
free = models.BooleanField(blank=True)
active = models.BooleanField()
class Meta:
db_table = 'training_plan'

View File

@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import os
BACKOFFICE_VERSION = 1.14
BACKOFFICE_VERSION = 1.20
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

View File

@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import os
BACKOFFICE_VERSION = 1.14
BACKOFFICE_VERSION = 1.20
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))