Return a new QueryDict with keys (may be repeated) from an iterable and values from value.
(cls, iterable, value="", mutable=False, encoding=None)
| 623 | |
| 624 | @classmethod |
| 625 | def fromkeys(cls, iterable, value="", mutable=False, encoding=None): |
| 626 | """ |
| 627 | Return a new QueryDict with keys (may be repeated) from an iterable and |
| 628 | values from value. |
| 629 | """ |
| 630 | q = cls("", mutable=True, encoding=encoding) |
| 631 | for key in iterable: |
| 632 | q.appendlist(key, value) |
| 633 | if not mutable: |
| 634 | q._mutable = False |
| 635 | return q |
| 636 | |
| 637 | @property |
| 638 | def encoding(self): |