BO 1.20 training_plan active
This commit is contained in:
parent
518b3c578e
commit
84f05228ad
@ -12,9 +12,9 @@ class TranslationTrainingPlanInline(admin.TabularInline):
|
|||||||
|
|
||||||
|
|
||||||
class TrainingPlanAdmin(admin.ModelAdmin):
|
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')
|
fields = ('tree', 'name', 'description', 'internal_name', 'free')
|
||||||
list_editable = ('name', 'internal_name', 'free')
|
list_editable = ('name', 'internal_name', 'free', 'active')
|
||||||
|
|
||||||
inlines = [
|
inlines = [
|
||||||
TranslationTrainingPlanInline
|
TranslationTrainingPlanInline
|
||||||
|
@ -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',
|
internal_name = models.CharField(max_length=50, blank=True, help_text='Only for programmers! "internal_name" format',
|
||||||
verbose_name=_("internal_name"))
|
verbose_name=_("internal_name"))
|
||||||
free = models.BooleanField(blank=True)
|
free = models.BooleanField(blank=True)
|
||||||
|
active = models.BooleanField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
db_table = 'training_plan'
|
db_table = 'training_plan'
|
||||||
|
@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
BACKOFFICE_VERSION = 1.14
|
BACKOFFICE_VERSION = 1.20
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
BACKOFFICE_VERSION = 1.14
|
BACKOFFICE_VERSION = 1.20
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
Loading…
Reference in New Issue
Block a user