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.
Release files for django-tckn-field 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-tckn-field-0.0.3.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_tckn_field-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / django-tckn-field-0.0.3.tar.gz
| Download URL | django-tckn-field-0.0.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
229f1cd24cb39cd3a0d17543ea33d75976b3260c46fcfe7f6e288b20d9ef85be
|
|
BLAKE2b-256 checksum How to use checksums |
f0ed0cd7f7151bce7a5a35e2475ec1f851361fef651439eb512a496b3af8e999
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / django_tckn_field-0.0.3-py3-none-any.whl
| Download URL | django_tckn_field-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdfe0f1d875a21ae194a592acb7692d73e829ec234b2358ab493fa7770a102cf
|
|
BLAKE2b-256 checksum How to use checksums |
9937d82c1ab4fa9e506fcebcb1d34ee35ea734a080850da9b09da309c1787bad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|