code: def leveled(self):
          
          
          # Compatibility support for Django<1.6
          safe_get_queryset = (self.get_query_set if hasattr(self, 'get_query_set') else self.get_queryset)
          
          return safe_get_queryset.exclude(level=0)
docs: Return all countries with a level set