Bläddra i källkod

[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 år sedan
förälder
incheckning
655870062e

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 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'),

Vissa filer visades inte eftersom för många filer har ändrats