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
File details
Details for the file django-tckn-field-0.0.3.tar.gz
.
File metadata
- Download URL: django-tckn-field-0.0.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
229f1cd24cb39cd3a0d17543ea33d75976b3260c46fcfe7f6e288b20d9ef85be
|
|
MD5 |
90e97791cd572acdea9aa0405fa7ccf0
|
|
BLAKE2b-256 |
f0ed0cd7f7151bce7a5a35e2475ec1f851361fef651439eb512a496b3af8e999
|
File details
Details for the file django_tckn_field-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: django_tckn_field-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fdfe0f1d875a21ae194a592acb7692d73e829ec234b2358ab493fa7770a102cf
|
|
MD5 |
4bd2c03e89d08ccc5f5af743df2b42b1
|
|
BLAKE2b-256 |
9937d82c1ab4fa9e506fcebcb1d34ee35ea734a080850da9b09da309c1787bad
|