Initial Commit
This commit is contained in:
26
README.md
Normal file
26
README.md
Normal 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`.
|
||||
Reference in New Issue
Block a user