瀏覽代碼

[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'),

部分文件因文件數量過多而無法顯示