Skip to main content

GST and PAN number field for django models.

Project description

Django Indian Tax Fields

This repository is a fork of the original repository django-gst-field. This fork is created to maintain the code and extend the original scope.

Contents

A Django library which provides model and form fields for Goods and Services Tax and Permanent Account Number

Includes:

  • GSTField, form and model field
  • PANField, form and model field

Installation

pip install django-indian-tax-fields

Basic usage

Add indian_tax_fields to the list of the installed apps in Django settings.py file:

INSTALLED_APPS = [
    ...
    'indian_tax_fields',
    ...
]

Model usage

from django.conf import settings
from django.db.models import ForeignKey, CASCADE, Model

from indian_tax_fields.gst.model_fields import GSTField
from indian_tax_fields.pan.model_fields import PANField

class Tax(Model):
    user = ForeignKey(settings.AUTH_USER_MODEL, on_delete=CASCADE)
    gstin = GSTField()
    pan = PANField()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_indian_tax_fields-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

django_indian_tax_fields-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file django_indian_tax_fields-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django_indian_tax_fields-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a39c2574e053aa89bdbf03f56b5fbe0e967b848fbdf56ef4ad5f2dc0cd23430e
MD5 35dfbac903f761d6084cd99f663f9225
BLAKE2b-256 088de0a42354b131778688a1e09d24eb78db0000da5a2f1eae269e8a23b1e383

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_indian_tax_fields-0.1.0.tar.gz:

Publisher: python-publish.yml on Mitrajeet-Golsangi/django-indian-tax-fields

Attestations:

File details

Details for the file django_indian_tax_fields-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_indian_tax_fields-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7866f987351ef39a2c646eaa5000ad6376a3f829c10ca08cefdbf7a781d3465
MD5 90bcf2e5bd35698e9aeaafd1e02655b4
BLAKE2b-256 1620dac27eba1b737d9f801d2f3c77d8edfc4de8a3f39e8c1676b5c763eefdfe

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_indian_tax_fields-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on Mitrajeet-Golsangi/django-indian-tax-fields

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page