util.mult_obj_viewsΒΆ
This module contains helper functions for parsing HTTP GET and POST parameters.
FunctionsΒΆ
Gets the primary keys for a str as list[str]. |
Module ContentsΒΆ
- util.mult_obj_views.get_primary_keys_from_str_as_list_of_ints(pks)[source]ΒΆ
Gets the primary keys for a str as list[str].
- Parameters:
pks (str) β
- The string in the form <pk0>/<pk1>/β¦/<pkn>.
Duplicate primary keys will cause a ValueError.
A trailing / is allowed.
- Raises:
ValueError β If not all primary keys can be interpreted as integers or if duplicates where found.
- Returns:
The list of primary keys.
- Return type:
list[int]