From d458c46771610dbe51be4a80d817c3302a82f50a Mon Sep 17 00:00:00 2001 From: gzbender Date: Tue, 2 Oct 2018 12:39:13 +0500 Subject: [PATCH] =?UTF-8?q?LIL-681=20=D0=9F=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B2=D0=BE=D0=B7=D1=80=D0=B0=D1=81=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B2=20=D0=BA=D1=83=D1=80=D1=81=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/course/models.py | 16 +++++----------- web/src/components/CourseRedactor.vue | 18 +++--------------- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/apps/course/models.py b/apps/course/models.py index c7927600..9dce98b0 100644 --- a/apps/course/models.py +++ b/apps/course/models.py @@ -51,20 +51,14 @@ class Course(BaseModel, DeactivatedMixin): (DENIED, 'Denied') ) AGE_LT5 = 1 - AGE_57 = 2 - AGE_79 = 3 - AGE_912 = 4 - AGE_1215 = 5 - AGE_1518 = 6 - AGE_GT18 = 7 + AGE_510 = 2 + AGE_1018 = 3 + AGE_GT18 = 4 AGE_CHOICES = ( (0, 'Любой возраст'), (AGE_LT5, 'до 5'), - (AGE_57, '5-7'), - (AGE_79, '7-9'), - (AGE_912, '9-12'), - (AGE_1215, '12-15'), - (AGE_1518, '15-18'), + (AGE_510, '5-10'), + (AGE_1018, '10-18'), (AGE_GT18, 'от 18'), ) slug = models.SlugField( diff --git a/web/src/components/CourseRedactor.vue b/web/src/components/CourseRedactor.vue index 767a4254..cd684536 100644 --- a/web/src/components/CourseRedactor.vue +++ b/web/src/components/CourseRedactor.vue @@ -350,28 +350,16 @@ 'value': 1, }, { - 'title': '5-7', + 'title': '5-10', 'value': 2, }, { - 'title': '7-9', + 'title': '10-18', 'value': 3, }, - { - 'title': '9-12', - 'value': 4, - }, - { - 'title': '12-15', - 'value': 5, - }, - { - 'title': '15-18', - 'value': 6, - }, { 'title': 'от 18', - 'value': 7, + 'value': 4, }, ],