Undocumented
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
No class docstring; 0/7 instance variable, 0/1 class variable, 1/6 method documented |
Class |
|
This class may be used to provide default values that are only used for create operations, but that do not return any value for update operations. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
No class docstring; 0/3 instance variable, 0/1 class variable, 1/5 method documented |
Class |
|
No class docstring; 0/8 instance variable, 0/1 class variable, 0/1 constant, 3/6 methods documented |
Class |
|
No class docstring; 0/2 instance variable, 0/2 class variable, 1/5 method documented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class | empty |
This class is used to represent no data being provided for a given input or output value. |
Class |
|
No class docstring; 2/3 properties, 0/17 instance variable, 0/2 class variable, 14/17 methods documented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
A hidden field does not take input from the user, or present any output, but it does populate a field in `validated_data`, based on its default value. This is particularly useful when we have a `unique_for_date` constraint on a pair of fields, as we need some way to include the date in the validated data. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Support both IPAddressField and GenericIPAddressField |
Class |
|
Undocumented |
Class |
|
No class docstring; 0/4 instance variable, 0/2 class variable, 2/5 methods documented |
Class |
|
A generic field that can be used against an arbitrary model field. |
Class |
|
Undocumented |
Class |
|
A read-only field that simply returns the field value. |
Class |
|
Undocumented |
Class |
|
A read-only field that get its representation from calling a method on the parent serializer class. The method called will be of the form "get_{field_name}", and should take a single argument, which is the object being serialized. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Exception |
|
Built-in function signatures are not inspectable. This exception is raised so the serializer can raise a helpful error message. |
Exception |
|
Undocumented |
Function | flatten |
Convert a group choices dict into a flat dict of choices. |
Function | get |
Similar to Python's built in `getattr(instance, attr)`, but takes a list of nested attributes, instead of a single attribute. |
Function | get |
Given a Django ValidationError, return a list of ErrorDetail, with the `code` populated. |
Function | is |
True if the object is a callable that takes no arguments. |
Function | iter |
Helper function for options and option groups in templates. |
Function | set |
Similar to Python's built in `dictionary[key] = value`, but takes a list of nested keys instead of a single key. |
Function | to |
Convert choices into key/value dicts. |
Constant | MISSING |
Undocumented |
Constant | NOT |
Undocumented |
Constant | NOT |
Undocumented |
Constant | NOT |
Undocumented |
Constant | REGEX |
Undocumented |
Constant | USE |
Undocumented |
Class | _ |
Undocumented |
Convert a group choices dict into a flat dict of choices. flatten_choices_dict({1: '1st', 2: '2nd'}) -> {1: '1st', 2: '2nd'} flatten_choices_dict({'Group': {1: '1st', 2: '2nd'}}) -> {1: '1st', 2: '2nd'}
Similar to Python's built in `getattr(instance, attr)`, but takes a list of nested attributes, instead of a single attribute. Also accepts either attribute lookup on objects or dictionary lookups.
Similar to Python's built in `dictionary[key] = value`, but takes a list of nested keys instead of a single key. set_value({'a': 1}, [], {'b': 2}) -> {'a': 1, 'b': 2} set_value({'a': 1}, ['x'], 2) -> {'a': 1, 'x': 2} set_value({'a': 1}, ['x', 'y'], 2) -> {'a': 1, 'x': {'y': 2}}
Convert choices into key/value dicts. to_choices_dict([1]) -> {1: 1} to_choices_dict([(1, '1st'), (2, '2nd')]) -> {1: '1st', 2: '2nd'} to_choices_dict([('Group', ((1, '1st'), 2))]) -> {'Group': {1: '1st', 2: '2'}}
Undocumented
Value |
|