docs: def _get_current_migration_state(self, loader, apps):
          """
          Extract the most recent migrations from the relevant apps.
          If no migrations have been performed, return 'zero' as the most recent migration for the app.
  
          This should only be called from list_migrations().
          """
          # Only care about applied migrations for the passed-in apps.
          apps = set(apps)
          relevant_applied = [migration for migration in loader.applied_migrations if migration[0] in apps]
          # Sort them by the most recent migration and convert to a dictionary,
          # leaving apps as keys and most recent migration as values.
          # NB: this is a dirty trick
          most_recents = dict(sorted(relevant_applied, key=lambda m: m[1]))
          # Fill in the apps with no migrations with 'zero'.
          # NOTE: Unicode Django application names are unsupported.
          most_recents = [[app, 'zero' if app not in most_recents else str(most_recents[app])] for app in apps]
          return most_recents