code: function parseDjangoVersionString(str) {
    if (typeof str !== 'string') {
      return false
    }
    const x = str.split('.')
    const maj = parseInt(x[0]) || 0
    const min = parseInt(x[1]) || 0
    return {
      major: maj,
      minor: min,
    }
  }
docs: /*
  Django versions will be specified in the form major.minor
  trying to sort with `semver.compare` will throw e.g:
  TypeError: Invalid Version: 1.11
  because no patch release is specified, so we will define
  our own functions to parse and sort django versions