code: def clean_limit(self):
          "Ensure given limit is less than default if defined"
          limit = self.cleaned_data.get('limit', None)
          if (settings.SELECTABLE_MAX_LIMIT is not None and
              (not limit or limit > settings.SELECTABLE_MAX_LIMIT)):
              limit = settings.SELECTABLE_MAX_LIMIT
          return limif clean_limit(self):
          "Ensure given limit is less than default if defined"
          limit = self.cleaned_data.get('limit', None)
          if (settings.SELECTABLE_MAX_LIMIT is not None and
              (not limit or limit > settings.SELECTABLE_MAX_LIMIT)):
              limit = settings.SELECTABLE_MAX_LIMIT
          return limit
docs: Ensure given limit is less than default if defined