{"id":24603690,"url":"https://github.com/apkawa/django-commission-field","last_synced_at":"2026-07-16T17:01:38.091Z","repository":{"id":66453177,"uuid":"131323780","full_name":"Apkawa/django-commission-field","owner":"Apkawa","description":"Percentage or fixed commission/discount field with calculations","archived":false,"fork":false,"pushed_at":"2020-01-23T13:05:12.000Z","size":327,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T17:59:51.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Apkawa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-27T17:01:21.000Z","updated_at":"2020-01-23T13:05:14.000Z","dependencies_parsed_at":"2023-02-20T23:31:05.344Z","dependency_job_id":null,"html_url":"https://github.com/Apkawa/django-commission-field","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Apkawa/django-commission-field","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fdjango-commission-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fdjango-commission-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fdjango-commission-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fdjango-commission-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Apkawa","download_url":"https://codeload.github.com/Apkawa/django-commission-field/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fdjango-commission-field/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35551282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-24T15:15:39.016Z","updated_at":"2026-07-16T17:01:38.084Z","avatar_url":"https://github.com/Apkawa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPi](https://img.shields.io/pypi/v/django-commission-field.svg)](https://pypi.python.org/pypi/django-commission-field)\n[![Build Status](https://travis-ci.org/Apkawa/django-commission-field.svg?branch=master)](https://travis-ci.org/Apkawa/django-commission-field)\n[![Documentation Status](https://readthedocs.org/projects/django-commission-field/badge/?version=latest)](https://pytest-ngrok.readthedocs.io/en/latest/?badge=latest)\n[![Codecov](https://codecov.io/gh/Apkawa/django-commission-field/branch/master/graph/badge.svg)](https://codecov.io/gh/Apkawa/django-commission-field)\n[![Requirements Status](https://requires.io/github/Apkawa/django-commission-field/requirements.svg?branch=master)](https://requires.io/github/Apkawa/django-commission-field/requirements/?branch=master)\n[![PyUP](https://pyup.io/repos/github/Apkawa/django-commission-field/shield.svg)](https://pyup.io/repos/github/Apkawa/django-commission-field)\n[![PyPi Python versions](https://img.shields.io/pypi/pyversions/django-commission-field.svg)](https://pypi.python.org/pypi/django-commission-field)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n# Installation\n\n```bash\npip install django-commission-field\n```\n\nor from git\n\n```bash\npip install -e git+https://githib.com/Apkawa/django-commission-field.git@master#egg=django-commission-field\n```\n\n## Django and python version\n\n| Python\u003cbr/\u003eDjango | 3.5 | 3.6 | 3.7 | 3.8 |\n|:-----------------:|-----|-----|-----|-----|\n| 1.8               |  ✘  |  ✘  |  ✘  |  ✘  |\n| 1.11              |  ✔  |  ✔  |  ✔  |  ✘  |\n| 2.2               |  ✔  |  ✔  |  ✔  |  ✔  |\n| 3.0               |  ✘  |  ✔  |  ✔  |  ✔  |\n\n\n# Usage\n\n```python\nfrom django.db import models\nfrom commission_field.db.fields import CommissionField, CommissionTypeEnum\n\n\nclass ExampleModel(models.Model):\n    discount = CommissionField()\n\n\nexample = ExampleModel(discount_value=10, discount_type=CommissionTypeEnum.PERCENT)\nassert example.discount.calculate_tax(1000) == 100\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapkawa%2Fdjango-commission-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapkawa%2Fdjango-commission-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapkawa%2Fdjango-commission-field/lists"}