Explorar o código

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

ayush.goyal %!s(int64=4) %!d(string=hai) anos
pai
achega
655870062e

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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'),

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio