Skip to content

Commit 63302c1

Browse files
committed
naming changed
1 parent 35b965e commit 63302c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rate_projects/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERBOSE_NAME_TYPES = (
1+
VERBOSE_TYPES = (
22
("str", "Текст"),
33
("int", "Целочисленное число"),
44
("float", "Число с плавающей точкой"),

rate_projects/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from partner_programs.models import PartnerProgram
55
from projects.models import Project
6-
from rate_projects.constants import VERBOSE_NAME_TYPES
6+
from rate_projects.constants import VERBOSE_TYPES
77

88
User = get_user_model()
99

@@ -24,7 +24,7 @@ class Criteria(models.Model):
2424

2525
name = models.CharField(verbose_name="Название", max_length=50)
2626
description = models.TextField(verbose_name="Описание", null=True, blank=True)
27-
type = models.CharField(verbose_name="Тип", max_length=8, choices=VERBOSE_NAME_TYPES)
27+
type = models.CharField(verbose_name="Тип", max_length=8, choices=VERBOSE_TYPES)
2828

2929
min_value = models.FloatField(
3030
verbose_name="Минимально допустимое числовое значение",

0 commit comments

Comments
 (0)