From cc72aaf21bacd205d24b2a9a6a5a00a1e5fd594e Mon Sep 17 00:00:00 2001 From: Jukka Hassinen <jukka.hassinen@gmail.com> Date: Tue, 19 Nov 2024 16:36:40 +0200 Subject: [PATCH 1/3] Create FUNDING.yml Signed-off-by: Jukka Hassinen <jukka.hassinen@gmail.com> --- .github/FUNDING.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..d3e336b --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: NextGenContributions From 3388b914b793f4db167bce90a9a63567edd121f3 Mon Sep 17 00:00:00 2001 From: Jukka Hassinen <jukka.hassinen@gmail.com> Date: Tue, 19 Nov 2024 17:21:53 +0200 Subject: [PATCH 2/3] fix: Update README.md and bump version to test deployment Signed-off-by: Jukka Hassinen <jukka.hassinen@gmail.com> --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 90ef62c..6d39d06 100644 --- a/README.md +++ b/README.md @@ -106,8 +106,11 @@ You need to explicitely override the following methods in the CRUDL controller. ```python +from django.db.models import Q +from django_ninja_crudl.crudl import Crudl from django_ninja_crudl.types import RequestDetails + class MyModelACrudl(Crudl): """A CRUDL controller for the Database model.""" @@ -189,6 +192,8 @@ Finally, you can define the permission classes to be used in the CRUDL controlle ```python +from django_ninja_crudl.crudl import Crudl + class MyModelACrudl(Crudl): class Meta: @@ -206,6 +211,8 @@ With the pre and post hooks, you can execute custom code before and after each C ```python +from django_ninja_crudl.crudl import Crudl + class MyModelACrudl(Crudl): class Meta: @@ -274,7 +281,7 @@ class MyModelACrudl(Crudl): model_class = MyModelA @http.get("/my_custom_endpoint") - def my_custom_endpoint(self, request: RequestDetails): + def my_custom_endpoint(self, request): """A custom endpoint.""" return {"message": "Hello, world!"} @@ -332,7 +339,7 @@ If you want to customize the validation, you can override or customize the full_ # Ways to support this project - ⭐ Star this project on GitHub -- Share this project with your friends, colleagues, and on social media +- Share this project with your friends, colleagues, and on social media: [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A//github.com/NextGenContributions/django-ninja-crudl), [Twitter](https://twitter.com/intent/tweet?text=I%20just%20found%20this%20cool%20library%20for%20Django%20which%20allows%20creating%20CRUD%20REST%20APIs%20quickly%3A%20https%3A//github.com/NextGenContributions/django-ninja-crudl%20), [Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/NextGenContributions/django-ninja-crudl%20), [Telegram](https://t.me/share/url?url=https%3A//github.com/NextGenContributions/django-ninja-crudl%20&text=I%20just%20found%20this%20cool%20library%20for%20Django%20which%20allows%20creating%20CRUD%20REST%20APIs%20quickly) - [Contribute code, documentation, and tests](CONTRIBUTING.md) -- Report bugs, issues, or feature requests -- Sponsor this project +- [Report bugs, issues, or feature requests](https://github.com/NextGenContributions/django-ninja-crudl/issues) +- [Sponsor this project](https://github.com/sponsors/NextGenControbutions) From 912be617e6404178af85b2e6a979af669641cac3 Mon Sep 17 00:00:00 2001 From: github-actions <actions@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:24:01 +0000 Subject: [PATCH 3/3] 0.0.2 Automatically generated by python-semantic-release --- CHANGELOG.md | 10 ++++++++++ django_ninja_crudl/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce0a2a6..44056a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # CHANGELOG +## v0.0.2 (2024-11-19) + +### Bug Fixes + +- Update README.md and bump version to test deployment + ([`3388b91`](https://github.com/NextGenContributions/django-ninja-crudl/commit/3388b914b793f4db167bce90a9a63567edd121f3)) + +Signed-off-by: Jukka Hassinen <jukka.hassinen@gmail.com> + + ## v0.0.1 (2024-11-19) ### Bug Fixes diff --git a/django_ninja_crudl/__init__.py b/django_ninja_crudl/__init__.py index 115aa6f..5212a4c 100644 --- a/django_ninja_crudl/__init__.py +++ b/django_ninja_crudl/__init__.py @@ -9,7 +9,7 @@ WithObjectActions, ) -__version__ = "0.0.1" +__version__ = "0.0.2" __all__ = [ "Crudl", diff --git a/pyproject.toml b/pyproject.toml index dcfa2a2..829c84a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "django-ninja-crudl" -version = "0.0.1" +version = "0.0.2" description = "CRUDL REST API endpoints from Django ORM models using Django Ninja framework" authors = [ "Jukka Hassinen <jukka.hassinen@gmail.com>"