<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_available_languages(self, obj):
 """ Fetching the available languages as queryset. """

        if obj:
            return obj.get_available_languages()
        else:
            return self.model._parler_meta.root_model.objects.none()