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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2c182ac53d4b9534feff4b35718eb7871f406aeeb21063a9f5c82287efb28d |
|
MD5 | 83fd1e5dbc897bf6bd687831735312ed |
|
BLAKE2b-256 | e8f7015d67cd113b103043b0b6093423c45a751b3be456d6df9bb2137c7076f0 |