Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jhassine/django-ninja-crudl
Browse files Browse the repository at this point in the history
  • Loading branch information
jhassine committed Nov 19, 2024
2 parents 6b39b29 + 912be61 commit ca73169
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: NextGenContributions
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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!"}

Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion django_ninja_crudl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
WithObjectActions,
)

__version__ = "0.0.1"
__version__ = "0.0.2"

__all__ = [
"Crudl",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = [
{name = "Jukka Hassinen", email = "jukka.hassinen@gmail.com"}
Expand Down

0 comments on commit ca73169

Please sign in to comment.