code: def updateSeriesRegistrationStatus():
      '''
      Every hour, check if the series that are currently open for registration
      should be closed.
      '''
      from .models import Series
  
      if not getConstant('general__enableCronTasks'):
          return
  
      logger.info('Checking status of Series that are open for registration.')
  
      open_series = Series.objects.filter().filter(**{'registrationOpen': True})
  
      for series in open_series:
          series.updateRegistrationStatus(f updateSeriesRegistrationStatus():
      '''
      Every hour, check if the series that are currently open for registration
      should be closed.
      '''
      from .models import Series
  
      if not getConstant('general__enableCronTasks'):
          return
  
      logger.info('Checking status of Series that are open for registration.')
  
      open_series = Series.objects.filter().filter(**{'registrationOpen': True})
  
      for series in open_series:
          series.updateRegistrationStatus()
docs: Every hour, check if the series that are currently open for registration
      should be closed.