File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- VERBOSE_NAME_TYPES = (
1+ VERBOSE_TYPES = (
22 ("str" , "Текст" ),
33 ("int" , "Целочисленное число" ),
44 ("float" , "Число с плавающей точкой" ),
Original file line number Diff line number Diff line change 33
44from partner_programs .models import PartnerProgram
55from projects .models import Project
6- from rate_projects .constants import VERBOSE_NAME_TYPES
6+ from rate_projects .constants import VERBOSE_TYPES
77
88User = 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 = "Минимально допустимое числовое значение" ,
You can’t perform that action at this time.
0 commit comments