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.

Files for django-tckn-field, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size django_tckn_field-0.0.3-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-tckn-field-0.0.3.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page