Skip to main content

Helper module used in general django applications

Project description

django-aid

Helper module used in general django applications

Django

Jinja2

django.jinja2.environment

Model

django.model.QuerySet

  • annotate_choices Annotate the get_FOO_display() values of fields where choices exist

DRF

ViewSet

  • viewsets.***ModelViewSet ViewSetMixin클래스를 상속받은 GenericViewSet. serializer_classes 속성을 사용하며, put 메서드에 대한 문서화를 해제한다.

Renderer

  • renderers.BrowsableAPIRenderer Form을 제거한 BrowsableAPIRendrer

Fields

  • fields.pk_model_field.PkModelField 특정 Model의 instance를 나타내는 Field 주어지는 데이터가 아래와 같을 경우를 처리

    # dict
    {'pk': 1} or {'id': 1}
    
    # literal (pk가 될 수 있는 숫자/문자 등의 고정 값)
    1 or '1'
    

    생성시에만 사용 가능하다

drf-yasg

  • drf_yasg.schema 문서화 생성 헬퍼 클래스

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

django-aid-0.1.10.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

django_aid-0.1.10-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file django-aid-0.1.10.tar.gz.

File metadata

  • Download URL: django-aid-0.1.10.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for django-aid-0.1.10.tar.gz
Algorithm Hash digest
SHA256 add0162c2bd4323591e3f241f5def7beb2ff6e928eaa421e26b9dbbe1345788d
MD5 eb6337aaf934e8f13f64703f92023d3d
BLAKE2b-256 e0133a1c53bba1e0668bedaddd477f423c7d850899fb9118c4cf491aeb6cb733

See more details on using hashes here.

File details

Details for the file django_aid-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: django_aid-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for django_aid-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d547a22fb4f5103188fbad65c0f1e0416312a8ce6f226f16617cc755b390f36a
MD5 40d628ee15184e93fd2cc1a0110b0978
BLAKE2b-256 819375b3192dda0d7eda6613c1751348d0de32919a11e97e58ffbb3b5825c974

See more details on using hashes here.

Supported by

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