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

django_tckn_field-0.0.3-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

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