django app for organizing users through memberships
Project description
Anorganization uses membership, and organization models to group users. Support for Ariadne graphQL with pre-defined types and basic resolvers.
Requirements
Python 3.10+
django 4.0+
ariadne 0.16.0+
ariadne-relay 0.1.0a8+
pillow 9.4.0+
Settings
Store uploaded file with tokenize file name, default to False
ANORGANIZATION_USE_TOKEN_FILENAME = True
Django admin mixins
Use predefined mixins to construct the admin class.
OrganizationAdminMixin
MembershipAdminMixin
from django.contrib import admin
from anorganization.models import Organization
from anorganization.mixins import OrganizationAdminMixin
@admin.register(Organization)
class OrganizationAdmin(OrganizationAdminMixin, ModelAdmin):
...
Ariadne types and resolvers
Integrate predefined types and resolvers to scheme.
resolvers
resolve_anorganizations
resolve_anorganization_memberships
types
anorganization
anorganization_membership
graphql
anorganization/graphqls/organization.graphql
anorganization/graphqls/membership.graphql
License
django-anarticle is released under the terms of Apache license. Full details in LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-anorganization-0.1.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4e4532d382119211636f8f82c3f03c705fe70817c6ac02e0c1d2bc4ef5314a9 |
|
MD5 | 2d0082f43bbd837403edbbf5669bf054 |
|
BLAKE2b-256 | c0ab350393d91250be5671f00cee693af4baf948f8c12d7dd862a2f8d9a0ecf7 |
Hashes for django_anorganization-0.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 231842599f94fbaa841cf38e39f17d2685daf570efb9248eec2e5e2ffaca47f7 |
|
MD5 | fb9d2ea2f2c51762eda03a3444b2c10c |
|
BLAKE2b-256 | 9faa28ec7455acc2941f29d7ec2ce969bfa855ca685e4d5951826176d4d7233c |