code: def all(self, target=None, include_global=True):
          
          aliases = {}
          for target_part in self._get_targets(target, include_global):
              aliases.update(self._aliases.get(target_part, {}))
          return aliases
docs: Get a dictionary of all aliases and their options.
  
          :param target: Include aliases for this specific field, model or app
              (optional).
          :param include_global: Include all non target-specific aliases
              (default ``True``).
  
          For example::
  
              >>> aliases.all(target='my_app.MyModel')
              {'small': {'size': (100, 100)}, 'large': {'size': (400, 400)}}