Initial Commit

This commit is contained in:
2024-05-20 19:10:57 +02:00
commit fc8d2bb57b
7 changed files with 425 additions and 0 deletions

26
README.md Normal file
View File

@@ -0,0 +1,26 @@
# Enhanced Django Rest Framework JSON Api
This is a library aimed to fix some classes in Django Rest Framework and Django Rest Framework JSON Api libraries.
## Contents
### enhanced_drf_jsonapi module
#### API
- ##### class PreloadIncludesMixin
Overwrites the method get_queryset(self, *args, **kwarg)
- ##### class ReasonableModelViewSet
Overwrites the attribute http_method_names
- ##### class ReasonableModelSerializer
Overwrites the method get_field_names(self, declared_fields, info)
#### PAGINATION
- ##### class NgxJsonApiPageNumberPagination
Overwrites the method get_paginated_response(self, data)
## Build the library
In root directory, run `python setup.py bdist_wheel`. This will create a wheel file in `dist` folder.
## Install
Run this command in the desired python environment `pip install path/to/wheelfile.whl`.