소스 검색

[DJANGO 3.0] oozie.Coordinator.timezone: (fields.E009) 'max_length' is too small to fit the longest value in 'choices' (32 characters)

ayush.goyal 4 년 전
부모
커밋
655870062e
2개의 변경된 파일17개의 추가작업 그리고 2개의 파일을 삭제
  1. 15 0
      apps/oozie/src/oozie/migrations/0008_auto_20210216_0216.py
  2. 2 2
      apps/oozie/src/oozie/models.py

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 15 - 0
apps/oozie/src/oozie/migrations/0008_auto_20210216_0216.py


+ 2 - 2
apps/oozie/src/oozie/models.py

@@ -1470,7 +1470,7 @@ class Coordinator(Job):
   frequency_unit = models.CharField(max_length=20, choices=FREQUENCY_UNITS, default='days', verbose_name=_t('Frequency unit'),
                                     help_text=_t('The unit of the rate at which data is periodically created.')) # unused
   timezone = models.CharField(
-    max_length=24,
+    max_length=32,
     choices=TIMEZONES,
     default='America/Los_Angeles',
     verbose_name=_t('Timezone'),
@@ -1769,7 +1769,7 @@ class Dataset(models.Model):
                 'configuration properties (e.g. /home/${USER}/projects/${PROJECT})')
   )
   timezone = models.CharField(
-    max_length=24,
+    max_length=32,
     choices=TIMEZONES,
     default='America/Los_Angeles',
     verbose_name=_t('Timezone'),

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.