Skip to content

Commit 6533234

Browse files
committed
www/py-dj42-drf-writable-nested: New port
Writable nested model serializer for Django REST framework
1 parent 0f93653 commit 6533234

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

‎www/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@
15091509
SUBDIR += py-dj42-djangorestframework
15101510
SUBDIR += py-dj42-drf-spectacular
15111511
SUBDIR += py-dj42-drf-spectacular-sidecar
1512+
SUBDIR += py-dj42-drf-writable-nested
15121513
SUBDIR += py-django-admin-rangefilter
15131514
SUBDIR += py-django-advanced-filters
15141515
SUBDIR += py-django-allauth
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
PORTNAME= drf-writable-nested
2+
PORTVERSION= 0.7.0
3+
DISTVERSIONPREFIX= v
4+
CATEGORIES= www python
5+
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj42-
6+
7+
MAINTAINER= grembo@FreeBSD.org
8+
COMMENT= Writable nested model serializer for Django REST framework
9+
WWW= https://github.com/beda-software/drf-writable-nested
10+
11+
LICENSE= BSD2CLAUSE
12+
13+
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=2.2:www/py-django42@${PY_FLAVOR} \
14+
${PYTHON_PKGNAMEPREFIX}dj42-djangorestframework>0:www/py-dj42-djangorestframework@${PY_FLAVOR}
15+
16+
USES= python
17+
USE_GITHUB= yes
18+
GH_ACCOUNT= beda-software
19+
USE_PYTHON= autoplist distutils
20+
21+
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
22+
23+
.include <bsd.port.mk>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TIMESTAMP = 1707576902
2+
SHA256 (beda-software-drf-writable-nested-v0.7.0_GH0.tar.gz) = 3a3f3985c97ee9288e691a290fc991a5811af5e03511660f084065e06c7de0fe
3+
SIZE (beda-software-drf-writable-nested-v0.7.0_GH0.tar.gz) = 21291
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This is a writable nested model serializer for Django REST Framework which
2+
allows you to create/update your models with related nested data.
3+
4+
The following relations are supported:
5+
6+
- OneToOne (direct/reverse)
7+
- ForeignKey (direct/reverse)
8+
- ManyToMany (direct/reverse excluding m2m relations with through model)
9+
- GenericRelation (this is always only reverse)

0 commit comments

Comments
 (0)