Skip to main content

GST and PAN number field for django models.

Project description

django-gst-field

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-gst-field

Basic usage

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

INSTALLED_APPS = [
    ...
    'gst_field',
    ...
]

Model usage

from django.conf import settings
from django.db.models import ForeignKey, CASCADE, Model
from gst_field.modelfields import GSTField, 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-gst-field-0.0.2.tar.gz (3.0 kB view hashes)

Uploaded Source

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