code: def current(cls, *args):
          
          cached = cache.get(cls.cache_key_name(*args))
          if cached is not None:
              return cached
  
          key_dict = dict(zip(cls.KEY_FIELDS, args))
          try:
              current = cls.objects.filter(**key_dict).order_by('-change_date')[0]
          except IndexError:
              current = cls(**key_dict)
  
          cache.set(cls.cache_key_name(*args), current, cls.cache_timeout)
          return current
docs: Return the active configuration entry, either from cache,
          from the database, or by creating a new empty entry (which is not
          persisted).