code: def get_all_active(self):
          
          now = timezone.now()
          return self.select_related().filter(active_datetime__lte=now,
                                                inactive_datetime__gte=now).order_by('active_datetime')
docs: Get all of the active messages ordered by the active_datetime.