You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.4 KiB
Markdown
24 lines
1.4 KiB
Markdown
# TaskWrite
|
|
|
|
Adds support for write once fields to serializers. To use it, specify a list of fields as `write_once_fields` on the serializer's Meta: ``` class Meta: model = SomeModel fields = '__all__' write_once_fields = ('collection', ) ``` Now the fields in `write_once_fields` can be set during POST (create), but cannot be changed afterwards via PUT or PATCH (update). Inspired by http://stackoverflow.com/a/37487134/627411.
|
|
|
|
## Properties
|
|
Name | Type | Description | Notes
|
|
------------ | ------------- | ------------- | -------------
|
|
**name** | **str** | |
|
|
**url** | **str** | | [optional] [readonly]
|
|
**id** | **int** | | [optional] [readonly]
|
|
**project_id** | **int, none_type** | | [optional]
|
|
**bug_tracker** | **str** | | [optional]
|
|
**overlap** | **int, none_type** | | [optional]
|
|
**segment_size** | **int** | | [optional]
|
|
**labels** | [**[Label]**](Label.md) | | [optional]
|
|
**subset** | **str** | | [optional]
|
|
**target_storage** | [**TaskReadTargetStorage**](TaskReadTargetStorage.md) | | [optional]
|
|
**source_storage** | [**TaskReadTargetStorage**](TaskReadTargetStorage.md) | | [optional]
|
|
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
|
|
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
|
|
|