code: def get_available_languages(self, obj):
          
          if obj:
              return obj.get_available_languages()
          else:
              return self.model._parler_meta.root_model.objects.none()
docs: Fetching the available languages as queryset.