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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_tckn_field-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdfe0f1d875a21ae194a592acb7692d73e829ec234b2358ab493fa7770a102cf |
|
MD5 | 4bd2c03e89d08ccc5f5af743df2b42b1 |
|
BLAKE2b-256 | 9937d82c1ab4fa9e506fcebcb1d34ee35ea734a080850da9b09da309c1787bad |