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 hashes)
Built Distribution
Close
Hashes for django_aid-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d547a22fb4f5103188fbad65c0f1e0416312a8ce6f226f16617cc755b390f36a |
|
MD5 | 40d628ee15184e93fd2cc1a0110b0978 |
|
BLAKE2b-256 | 819375b3192dda0d7eda6613c1751348d0de32919a11e97e58ffbb3b5825c974 |