Skip to main content

A Django app built to integrate Republic of Turkey Identification Number to your project.

Project description

Django TCKN Field

A Django app built to integrate Republic of Turkey Identification Number to your project.

Installation

pip install django-tckn-field

Quick Start

from tckn.fields import TCKNField

class MyModel(models.Model):
    tckn_field = TCKNField()

How Numbers Are Validated

TCKNField inherits CharField, so it must be a string. Identification numbers are created by following these rules:

  • The number must be 11 characters long
  • The number mustn't start with 0
  • The tenth character is created with this formula:

  • The eleventh character is created with this formula:

License

You can use this program under the terms of MIT License. See LICENSE for details.

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-tckn-field-0.0.3.tar.gz (3.0 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page