code: def get_all_items(obj):
      
      if hasattr(obj, 'getlist'):
          items = []
          for key in obj:
              for value in obj.getlist(key):
                  items.append((key, value))
          return items
      else:
          return obj.items()
docs: dict.items() but with a separate row for each value in a MultiValueDict