code: def get_active_terms_list():
          
  
          active_terms_list = cache.get('tandc.active_terms_list')
          if active_terms_list is None:
              active_terms_list = TermsAndConditions.objects.filter(id__in=TermsAndConditions.get_active_terms_ids()).order_by('slug')
              cache.set('tandc.active_terms_list', active_terms_list, TERMS_CACHE_SECONDS)
  
          return active_terms_list
docs: Returns all the latest active terms and conditions