Skip to main content

快速构建 RESTful API

Project description

Dseagull

快速构建 RESTful API


serializers.Field

支持 required=True 时提示带上字段的 help_text 信息

from rest_framework.serializers import Serializer
class ExampleSerializer(Serializer):
    name = field(help_text='姓名')

原本提示:这个字段是必填项。

现提示:姓名:这个字段是必填项。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dseagull-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dseagull-0.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file dseagull-0.0.2.tar.gz.

File metadata

  • Download URL: dseagull-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for dseagull-0.0.2.tar.gz
Algorithm Hash digest
SHA256 63e5a9fe7a4eb560f8863e994240db21e85ccefe9db599d25d1c0c67e5756654
MD5 18c74cc5bb1d3991840bd3a150795ec8
BLAKE2b-256 e6d28b16ee1173e026bc7bb39e809482c0c05f754d33c70d365470881b329828

See more details on using hashes here.

File details

Details for the file dseagull-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dseagull-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for dseagull-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 811dfbf30fc14fc55f5ac660c056ed449815e6142662a000907ae56a94e13f13
MD5 c400e243fe2a3693b36b471620d6364e
BLAKE2b-256 0deb9a4953fac822fa6ef0878ed9addd22a14319eaabcb2d03c5d989be208a34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page